Escucha y lee

Entra en un mundo infinito de historias

  • Vive la experiencia de leer y escuchar todo lo que quieras
  • Más de 650.000 títulos
  • Títulos en exclusiva y Storytel Originals
  • Primeros 14 días gratis, luego 8,99 €/mes
  • Cancela cuando quieras
Suscríbete ahora
Details page - Device banner - 894x1036
Cover for Mastering Python

Mastering Python

Idioma
Inglés
Formato
Categoría

No ficción

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 (Ebook): 9781785289132

Fecha de lanzamiento

Ebook: 29 de abril de 2016

Etiquetas

    Otros también disfrutaron ...

    1. Probability, Markov Chains, Queues, and Simulation: The Mathematical Basis of Performance Modeling
      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
      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
      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
      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
      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
      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
      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
      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)
      The Princeton Encyclopedia of the World Economy (Two volume set) Lewis S. Davis
    37. Mathematics in Nature: Modeling Patterns in the Natural World
      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

    Elige el plan:

    • Más de 650.000 títulos

    • Kids mode

    • Modo sin conexión

    • Cancela cuando quieras

    ¡Más popular!

    Unlimited

    Para los que quieren escuchar y leer sin límites.

    8.99 € /mes
    14 días gratis
    • 1 cuenta

    • Acceso ilimitado

    • Escucha y lee los títulos que quieras

    • Modo sin conexión + Kids Mode

    • Cancela en cualquier momento

    Suscríbete ahora

    Family

    Para los que quieren compartir historias con su familia y amigos.

    Desde 15.99 €/mes
    • 2-3 cuentas

    • Acceso ilimitado

    • Escucha y lee los títulos que quieras

    • Modo sin conexión + Kids Mode

    • Cancela en cualquier momento

    2 cuentas

    15.99 € /mes
    Pruébalo ahora