Powerful Python: The Most Impactful Patterns, Features, and Development Strategies Modern Python Provides
Book information
Description
There are many books for those new to Python, new to programming, or both. Powerful Python is different. Written for experienced developers like you, its carefully crafted chapters teach intermediate and advanced strategies, patterns, and tools for modern Python. Focused on Python 3, with full support for 2.7. DRM-free digital upgrade: powerfulpython.com/book-upgrade "Feels like Neo learning Jiu jitsu in the Matrix." - John Beauford (@johnbeauford) "I just wanted to let you know what an excellent book this is... I keep going back to your book to learn Python." - Fahad Qazi, London, UK "Thanks. Keep up the good work. Your chapter on decorators is the best I have seen on that topic." - Leon Tietz, Minnesota, USA "Powerful Python is already helping me get huge optimization gains." - Timothy Dobbins (@TmthyDobbins) "What have I found good and valuable about the book so far? Everything honestly. The clear explanations, solid code examples have really helped me advance as a Python coder... Thank you! It has really helped me grasp some advanced concepts that I felt were beyond my abilities." - Nick S., Colorado, USA For data scientists, back-end engineers, web developers, sysadmins, devops, QA testers and more. What's included: An unrelenting selective spotlight on what's most valuable and impactful to working, full-time, professional Python developers Well-researched, detailed, realistic code on almost every page, powerfully illustrating key points. Very little "toy code" How to use decorators to add rich features to functions and classes; untangle distinct, frustratingly intertwined concerns in your code; and build powerful, extensible software frameworks How to use Python in ways that incentivize other developers to use and re-use your code, again and again... amplifying the impact of the code you write, and boosting your reputation among your peers Powerfully and easily weave iterators and generators throughout your applications, making them massively scalable, highly performant, and far more readable and maintainable How to fully leverage Python's exception and error model... giving you a detailed understanding even experienced Pythonistas often lack, and putting some of the most powerfully Pythonic exception-handling patterns in your toolbox How "magic methods" imbue natural, readable, expressive syntax into your classes and objects... and how to "break the rules" to craft stunningly intuitive, compellingly reusable library interfaces Valuable and powerful design patterns, and how Python's special language features give you uniquely powerful implementations not possible in other languages Deep and detailed instruction on how to write practical, realistic unit tests... using test-driven development to easily get into a state of flow... where you find yourself implementing feature after feature, keeping your focus with ease for long periods of time How to rapidly set up effective logging for scripts, sprawling Python applications, and everything in between An enthusiastic and unapologetic focus on Python 3, and what makes it great... with full explanation and support for getting the same results with Python 2.7 More at PowerfulPython.com. Doing More with Python Python Versions Python Application Environments Python Package Management Scaling With Generators Iteration in Python Generator Functions Generator Patterns and Scalable Composability Python is Filled With Iterators The Iterator Protocol Creating Collections with Comprehensions List Comprehensions Formatting For Readability (And More) Multiple Sources and Filters Comprehensions and Generators Dictionaries, Sets, and Tuples Limits of Comprehensions Advanced Functions Accepting & Passing Variable Arguments Functions As Objects Key Functions in Python Decorators The Basic Decorator Data In Decorators Decorators That Take Arguments Class-based Decorators Decorators For Classes Preserving the Wrapped Function Exceptions and Errors The Basic Idea Exceptions Are Objects Raising Exceptions Catching And Re-raising The Most Diabolical Python Anti-Pattern Classes and Objects: Beyond The Basics Quick Note on Python 2 Properties The Factory Patterns The Observer Pattern Magic Methods Rebelliously Misusing Magic Methods Automated Testing and TDD What is Test-Driven Development? Unit Tests And Simple Assertions Fixtures And Common Test Setup Asserting Exceptions Using Subtests Final Thoughts String Formatting Replacing Fields Number Formats (and "Format Specs") Width, Alignment, and Fill F-Strings Percent Formatting Logging in Python The Basic Interface Configuring The Basic Interface Passing Arguments Beyond Basic: Loggers Log Destinations: Handlers and Streams Logging to Multiple Destinations Record Layout with Formatters What’s Next?
Similar books
Powerful Python
2024 · EPUB
Powerful Python (for Raymond Rhine)
2024 · EPUB
Powerful Python: Patterns and Strategies with Modern Python (Early Release)
2024 · EPUB
Powerful Python: The Most Impactful Patterns, Features, and Development Strategies Modern Python Provides
2017 · PDF
MySQL® Notes for Professionals book
2018 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36
2010 · PDF