Lyt når som helst, hvor som helst

Nyd den ubegrænsede adgang til tusindvis af spændende e- og lydbøger - helt gratis

  • Lyt og læs så meget du har lyst til
  • Opdag et kæmpe bibliotek fyldt med fortællinger
  • Eksklusive titler + Mofibo Originals
  • Opsig når som helst
Prøv nu
DK - Details page - Device banner - 894x1036
Cover for Mastering Python

Mastering Python

Sprog
Engelsk
Format
Kategori

Fakta

Master the art of writing beautiful and powerful Python by using all of the features that Python 3.5 offers

About This Book

• Become familiar with the most important and advanced parts of the Python code style

• Learn the trickier aspects of Python and put it in a structured context for deeper understanding of the language

• Offers an expert's-eye overview of how these advanced tasks fit together in Python as a whole along with practical examples

Who This Book Is For

Almost anyone can learn to write working script and create high quality code but they might lack a structured understanding of what it means to be 'Pythonic'. If you are a Python programmer who wants to code efficiently by getting the syntax and usage of a few intricate Python techniques exactly right, this book is for you.

What You Will Learn • Create a virtualenv and start a new project

• Understand how and when to use the functional programming paradigm

• Get familiar with the different ways the decorators can be written in

• Understand the power of generators and coroutines without digressing into lambda calculus

• Create metaclasses and how it makes working with Python far easier

• Generate HTML documentation out of documents and code using Sphinx

• Learn how to track and optimize application performance, both memory and cpu

• Use the multiprocessing library, not just locally but also across multiple machines

• Get a basic understanding of packaging and creating your own libraries/applications

In Detail

Python is a dynamic programming language. It is known for its high readability and hence it is often the first language learned by new programmers. Python being multi-paradigm, it can be used to achieve the same thing in different ways and it is compatible across different platforms. Even if you find writing Python code easy, writing code that is efficient, easy to maintain, and reuse is not so straightforward.

This book is an authoritative guide that will help you learn new advanced methods in a clear and contextualised way. It starts off by creating a project-specific environment using venv, introducing you to different Pythonic syntax and common pitfalls before moving on to cover the functional features in Python. It covers how to create different decorators, generators, and metaclasses. It also introduces you to functools. wraps and coroutines and how they work. Later on you will learn to use asyncio module for asynchronous clients and servers. You will also get familiar with different testing systems such as py. test, doctest, and unittest, and debugging tools such as Python debugger and faulthandler. You will learn to optimize application performance so that it works efficiently across multiple machines and Python versions. Finally, it will teach you how to access C functions with a simple Python call. By the end of the book, you will be able to write more advanced scripts and take on bigger challenges.

Style and Approach

This book is a comprehensive guide that covers advanced features of the Python language, and communicate them with an authoritative understanding of the underlying rationale for how, when, and why to use them.

© 2016 Packt Publishing (E-bog): 9781785289132

Udgivelsesdato

E-bog: 29. april 2016

Andre kan også lide...

  1. Probability, Markov Chains, Queues, and Simulation: The Mathematical Basis of Performance Modeling William J. Stewart
  2. Artificial Intelligence
    Artificial Intelligence Introbooks Team
  3. Hacking: A Quick and Simple Introduction to the Basics of Hacking, Scripting, Cybersecurity, Networking, and System Penetration
    Hacking: A Quick and Simple Introduction to the Basics of Hacking, Scripting, Cybersecurity, Networking, and System Penetration Hans Weber
  4. Everyday Calculus: Discovering the Hidden Math All around Us Oscar E. Fernandez
  5. In Pursuit of Zeta-3: The World's Most Mysterious Unsolved Math Problem Paul J. Nahin
  6. AI for beginners: Begin your AI developer journey in 2024
    AI for beginners: Begin your AI developer journey in 2024 Et Tu Code
  7. Auto Repair For Dummies: 2nd Edition
    Auto Repair For Dummies: 2nd Edition Deanna Sclar
  8. The Logician and the Engineer: How George Boole and Claude Shannon Created the Information Age Paul J. Nahin
  9. Estate & Trust Administration For Dummies
    Estate & Trust Administration For Dummies Margaret A. Munro
  10. Building Beehives For Dummies
    Building Beehives For Dummies Howland Blackiston
  11. Physics Textbook
    Physics Textbook Introbooks Team
  12. Raising Goats For Dummies
    Raising Goats For Dummies Cheryl K. Smith
  13. The Future of Capitalism
    The Future of Capitalism Introbooks Team
  14. Sports Betting For Dummies
    Sports Betting For Dummies Swain Scheps
  15. Running A Bar for Dummies
    Running A Bar for Dummies Heather Dismore
  16. An Introduction to Mathematical Analysis for Economic Theory and Econometrics Juraj Zeman
  17. Building Chicken Coops For Dummies
    Building Chicken Coops For Dummies Dave Zook
  18. Esports For Dummies
    Esports For Dummies Phill Alexander
  19. Mathematical Knowledge and the Interplay of Practices José Ferreirós
  20. Ethical Hacking With Kali Linux: Learn Fast How To Penetrate Wired Or Wireless Networks | 2 Books In 1
    Ethical Hacking With Kali Linux: Learn Fast How To Penetrate Wired Or Wireless Networks | 2 Books In 1 HUGO HOFFMAN
  21. Cloud Security For Dummies
    Cloud Security For Dummies Ted Coombs
  22. Heavenly Mathematics: The Forgotten Art of Spherical Trigonometry Glen Van Brummelen
  23. Electronic Health Records for Dummies
    Electronic Health Records for Dummies Anita Samarth
  24. German Shepherds for Dummies
    German Shepherds for Dummies D. Caroline Coile, PhD
  25. Philosophy: Wise Ideas from Eastern and Western Philosophers
    Philosophy: Wise Ideas from Eastern and Western Philosophers Philip Rivaldi
  26. Skepticism: The Stoic, the Skeptic, and the Existentialist Thinkers of the World
    Skepticism: The Stoic, the Skeptic, and the Existentialist Thinkers of the World Hector Janssen
  27. Viewpoints: Mathematical Perspective and Fractal Geometry in Art Marc Frantz
  28. Chess: The Game for Peace and Prosperity
    Chess: The Game for Peace and Prosperity Adam Rothstein
  29. Game Theory: Applications to Economics and Economic Theory
    Game Theory: Applications to Economics and Economic Theory Daniel Shore
  30. One Move at a Time: How to Play and Win at Chess and Life
    One Move at a Time: How to Play and Win at Chess and Life Orrin C. Hudson
  31. Horseback Riding For Dummies
    Horseback Riding For Dummies Audrey Pavia
  32. Music Theory for Beginners: Essential Music Theory Made Easy for All Musicians
    Music Theory for Beginners: Essential Music Theory Made Easy for All Musicians Aventuras De Viaje
  33. Critical Thinking: Becoming Skeptical, Smarter, and Deeper in Your Thought Patterns
    Critical Thinking: Becoming Skeptical, Smarter, and Deeper in Your Thought Patterns Hector Janssen
  34. Critical Thinking: Skills to Contemplate Life, Nature, the Human Race, and More
    Critical Thinking: Skills to Contemplate Life, Nature, the Human Race, and More Hector Janssen
  35. Casino Gambling For Dummies, 2nd Edition
    Casino Gambling For Dummies, 2nd Edition Swain Scheps
  36. The Princeton Encyclopedia of the World Economy (Two volume set) Lewis S. Davis
  37. Mathematics in Nature: Modeling Patterns in the Natural World John Adam
  38. Summary, Analysis, and Review of Brian Greene's Until the End of Time: Mind, Matter, and Our Search for Meaning in an Evolving Universe
    Summary, Analysis, and Review of Brian Greene's Until the End of Time: Mind, Matter, and Our Search for Meaning in an Evolving Universe Start Publishing Notes
  39. Dark Psychology and Manipulation: How To Influence People: The Ultimate Guide To Learning The Art of Persuasion, Body Language, Hypnosis, NLP Secrets, Emotional Influence And Mind Control Techniques
    Dark Psychology and Manipulation: How To Influence People: The Ultimate Guide To Learning The Art of Persuasion, Body Language, Hypnosis, NLP Secrets, Emotional Influence And Mind Control Techniques william cure
  40. Teaching in the Online Classroom: Surviving and Thriving in the New Normal
    Teaching in the Online Classroom: Surviving and Thriving in the New Normal Doug Lemov
  41. Ear Training Course for Guitar: Intervals
    Ear Training Course for Guitar: Intervals Julia Whitlock
  42. Exchange-Traded Funds For Dummies
    Exchange-Traded Funds For Dummies Russell Wild
  43. Guide to Niall Kishtainy's A Little History of Economics by Instaread
    Guide to Niall Kishtainy's A Little History of Economics by Instaread Instaread
  44. Paralegal Career For Dummies: 2nd Edition
    Paralegal Career For Dummies: 2nd Edition Lisa Zimmer Hatch, MA

Vælg dit abonnement

  • Over 600.000 titler

  • Download og nyd titler offline

  • Eksklusive titler + Mofibo Originals

  • Børnevenligt miljø (Kids Mode)

  • Det er nemt at opsige når som helst

Den mest populære

Premium

For dig som lytter og læser ofte.

129 kr. /måned
  • 1 konto

  • 100 timer/måned

  • Eksklusivt indhold hver uge

  • Fri lytning til podcasts

  • Ingen binding

Start tilbuddet

Unlimited

For dig som lytter og læser ubegrænset.

149 kr. /måned
  • 1 konto

  • Ubegrænset adgang

  • Eksklusivt indhold hver uge

  • Fri lytning til podcasts

  • Ingen binding

Start tilbuddet

Family

For dig som ønsker at dele historier med familien.

Fra 179 kr. /måned
  • 2-6 konti

  • 100 timer/måned pr. konto

  • Fri lytning til podcasts

  • Kun 39 kr. pr. ekstra konto

  • Ingen binding

2 konti

179 kr. /måned
Start tilbuddet

Flex

For dig som vil prøve Mofibo.

89 kr. /måned
  • 1 konto

  • 20 timer/måned

  • Gem op til 100 ubrugte timer

  • Eksklusivt indhold hver uge

  • Fri lytning til podcasts

  • Ingen binding

Prøv gratis