Master the secret tools every Python programmer needs to know
Professional Python goes beyond the basics to teach beginner- and intermediate-level Python programmers the little-known tools and constructs that build concise, maintainable code. Design better architecture and write easy-to-understand code using highly adoptable techniques that result in more robust and efficient applications. Coverage includes Decorators, Context Managers, Magic Methods, Class Factories, Metaclasses, Regular Expressions, and more, including advanced methods for unit testing using asyncio and CLI tools. Each topic includes an explanation of the concept and a discussion on applications, followed by hands-on tutorials based on real-world scenarios. All sample code is available for download from the companion website, and the "Python 3 first" approach covers multiple current versions, while ensuring long-term relevance.
Python offers many tools and techniques for writing better code, but often confusing documentation leaves many programmers in the dark about how to use them. This book shines a light on these incredibly useful methods, giving you clear guidance toward building stronger applications. * Learn advanced Python functions, classes, and libraries * Utilize better development and testing tools * Understand the "what," "when," "why," and "how" * Download example code to start programming right away
More than just theory or a recipe-style walk-through, this guide helps you learn and understand these little-known tools and techniques. You'll streamline your workflow while improving the quality of your output, producing more robust applications with cleaner code and stronger architecture. If you're ready to take your Python skills to the next level, Professional Python is the invaluable guide that will get you there.Vom Verlag:
Python provides many tools and constructs for writing advanced but concise and maintainable code. However, many Python programmers are unfamiliar with how to use them. The purpose of this book, therefore, is to give beginning and intermediate-level Python programmers the ability to write better architected and easier to understand applications by introducing widely applicable language constructs that are relatively easy to adopt and result in more robust and efficient applications.The book covers a set of advanced Python functions, classes, and libraries, including: - Decorators- Context Managers- Generators - Magic Methods / Overloading- Class Factories- Metaclasses - Strings and bytestrings- Regular Expressions (re)The author also covers advanced tools for both developing and testing Python apps, including: - Unit Testing & Mocking- CLI tools (optparse)- asyncio (Python 3.4 only)For each topic, the author will: - introduce the language constructs and libraries conceptually: i.e., explaining the "what"- explain "why" the construct can be useful, and importantly "when" (and when not) to use it- show "how" to code solutions using these constructs against real-world scenarios This book will, when versions of Python diverge, provide implementation details for both, but for the most part will take a "Python 3 first" approach to ensure the book remains relevant for a long time. It will also promote the use of six (http: //pythonhosted.org/six/) for a single-source implementation where possible.All code examples in the book will be available on the book's companion website for download.
„Über diesen Titel“ kann sich auf eine andere Ausgabe dieses Titels beziehen.
Buchbeschreibung Wiley John & Sons Nov 2015, 2015. Taschenbuch. Buchzustand: Neu. 252x189x23 mm. Neuware - Master the secret tools every Python programmer needs to know 260 pp. Englisch. Artikel-Nr. 9781119070856