Buy New
-39%
$39.89$39.89
FREE delivery Thursday, June 25
Ships from: Amazon.com Sold by: Amazon.com
Used - Very Good
$25.16$25.16
FREE delivery Saturday, June 27
Ships from: BooksRun Sold by: BooksRun
Sorry, there was a problem.
There was an error retrieving your Wish Lists. Please try again.Sorry, there was a problem.
List unavailable.
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
Powerful Python: Patterns and Strategies with Modern Python
Purchase options and add-ons
Once you've mastered the basics of Python, how do you skill up to the top 1%? How do you focus your learning time on topics that yield the most benefit for production engineering and data teams-- without getting distracted by info of little real-world use? This book answers these questions and more.
Based on author Aaron Maxwell's software engineering career in Silicon Valley, this unique book focuses on the Python first principles that act to accelerate everything else: the 5% of programming knowledge that makes the remaining 95% fall like dominos. It's also this knowledge that helps you become an exceptional Python programmer, fast.
- Learn how to think like a Pythonista: explore advanced Pythonic thinking
- Create lists, dicts, and other data structures using a high-level, readable, and maintainable syntax
- Explore higher-order function abstractions that form the basis of Python libraries
- Examine Python's metaprogramming tools for priceless patterns of code reuse
- Master Python's error model and learn how to leverage it in your own code
- Learn the more potent and advanced tools of Python's object system
- Take a deep dive into Python's automated testing and TDD
- Learn how Python logging helps you troubleshoot and debug more quickly
- ISBN-101098175700
- ISBN-13978-1098175702
- Edition1st
- PublisherO'Reilly Media
- Publication dateDecember 17, 2024
- LanguageEnglish
- Dimensions7 x 0.42 x 9.19 inches
- Print length200 pages
![]() |
Frequently bought together

Deals on related products
Customers also bought or read
- Fluent Python: Clear, Concise, and Effective Programming
Paperback$43.99$43.99FREE delivery Thu, Jun 25 - Effective Python: 125 Specific Ways to Write Better Python (Effective Software Development Series)
Paperback$52.80$52.80FREE delivery Thu, Jun 25 - Architecture Patterns with Python: Enabling Test-Driven Development, Domain-Driven Design, and Event-Driven Microservices
Paperback$37.10$37.10FREE delivery Thu, Jun 25 - High Performance Python: Practical Performant Programming for Humans
Paperback$44.99$44.99FREE delivery Thu, Jun 25 - Python Testing with pytest: Simple, Rapid, Effective, and Scalable
Paperback$30.29$30.29Delivery Thu, Jun 25 - Fundamentals of Software Architecture: A Modern Engineering Approach#1 Best SellerComputer Programming Logic
Paperback$52.40$52.40FREE delivery Thu, Jun 25 - Python for Data Analysis: Data Wrangling with pandas, NumPy, and Jupyter
Paperback$43.99$43.99FREE delivery Thu, Jun 25 - Clean Architecture with Python: Implement scalable and maintainable applications using proven architectural principles
Paperback$32.39$32.39Delivery Thu, Jun 25 - Mathematics of Machine Learning: Master linear algebra, calculus, and probability for machine learning
Paperback$50.99$50.99FREE delivery Thu, Jun 25 - Learning Git: A Hands-On and Visual Guide to the Basics of Git
Paperback$34.92$34.92Delivery Thu, Jun 25 - Hands-On Machine Learning with Scikit-Learn and PyTorch: Concepts, Tools, and Techniques to Build Intelligent Systems
Paperback$83.40$83.40FREE delivery Thu, Jun 25 - Hands-On Large Language Models: Language Understanding and Generation
Paperback$47.69$47.69FREE delivery Thu, Jun 25 - Python Machine Learning By Example: Unlock machine learning best practices with real-world use cases
Paperback$31.11$31.11Delivery Thu, Jun 25 - Django 5 By Example: Build powerful and reliable Python web applications from scratch
Paperback$39.99$39.99FREE delivery Thu, Jun 25 - Software Design for Python Programmers: Principles and patterns
Paperback$59.99$59.99FREE delivery Thu, Jun 25 - Web Scraping with Python: Data Extraction from the Modern Web
Paperback$44.94$44.94FREE delivery Thu, Jun 25 - Django for APIs, 5th Edition: Build Web APIs with Python and Django
Paperback$39.99$39.99FREE delivery Thu, Jun 25 - Build a Large Language Model (From Scratch)#1 Best SellerArtificial Intelligence Expert Systems
Paperback$49.24$49.24FREE delivery Thu, Jun 25 - Design Patterns: Elements of Reusable Object-Oriented Software
Hardcover$26.48$26.48Delivery Jul 1 - 6 - Building AI Agents with LLMs, RAG, and Knowledge Graphs: A practical guide to autonomous and modern AI agents
Paperback$59.99$59.99FREE delivery Thu, Jun 25 - Designing Machine Learning Systems: An Iterative Process for Production-Ready Applications
Paperback$40.00$40.00FREE delivery Thu, Jun 25 - Generative AI with LangChain: Build production-ready LLM applications and advanced agents using Python, LangChain, and LangGraph
Paperback$44.99$44.99FREE delivery Thu, Jun 25 - Introducing Python: Modern Computing in Simple Packages
Paperback$39.27$39.27FREE delivery Thu, Jun 25 - Prompt Engineering for Generative AI: Future-Proof Inputs for Reliable AI Outputs
Paperback$50.00$50.00FREE delivery Thu, Jun 25
From the brand
-
Learn Python
-
Python performace
-
Python for Data Science
-
Sharing the knowledge of experts
O'Reilly's mission is to change the world by sharing the knowledge of innovators. For over 40 years, we've inspired companies and individuals to do new things (and do them better) by providing the skills and understanding that are necessary for success.
Our customers are hungry to build the innovations that propel the world forward. And we help them do just that.
From the Publisher
From the Preface
Who This Book Is For
This book is for you if you know the basics of Python and have mastered just about everything the beginner tutorials can teach you. It is also for those who want to learn more advanced techniques and strategies, so you can do more with Python, and more with coding, than you could before.
This book is not for people who want just enough Python to get by. Like I said, Python is important, and rewards those who master it.
And this book is not for the unambitious. In writing, I assume you want to build a career you are proud of, doing work with a high positive impact.
Further, this book is not for the mentally rigid. The difference between elite engineers and “normal” coders lies in the distinctions they make, the mental models they leverage, and their ability to perceive what others cannot.
Our Strategy in This Book
Modern Problem #1: You have too much to learn.
Modern Problem #2: Society has evolved to reduce your time and energy for deep focused learning, due to changes in technology and culture.
This seems like a recipe for misery. But there is a way out: what are called first principles.
In any field of human activity—including Python coding—there are foundational concepts which everything builds on. These include powerful distinctions, abstractions, and mental models. When you learn what these first principles are and how to work with them, you find yourself cutting through the noise and getting ahead much more easily. These first principles are accelerators, in that they give you the tools, inner resources, and capabilities to solve many problems. It effectively creates a “95/5” rule: there is a 5% you can focus on learning, which makes the remaining 95% fall like dominos.
That 5% is what we mean by the first principles of Python. Which is what this book is really about.
Hence, this book is selective in what it covers. It is not a comprehensive “one stop shop” for everything Python. Further, this book contains practical guidance based on lessons learned when writing real-world software—often as part of a team of engineers.
So factors like maintainability, robustness, and readability are considered more important than anything else. There is a balance between leveraging powerful abstractions, and writing code that is easy to work with by everyone on your team. This book aims to walk that line.
Throughout, I give much attention to cognitive aspects of software development. How do you write code that you and others can reason about easily, quickly, and accurately? This is one reason variable and function naming is important. But it goes far beyond that syntax level…to intelligently choosing which language features and library resources to use, and which to avoid.
This book is not large, as measured by number of pages. That’s a feature, not a bug: you already have too much to read. The focus is on what’s most valuable, so that—as much as possible—everything you learn will serve you for years.
Editorial Reviews
About the Author
Product details
- Publisher : O'Reilly Media
- Publication date : December 17, 2024
- Edition : 1st
- Language : English
- Print length : 200 pages
- ISBN-10 : 1098175700
- ISBN-13 : 978-1098175702
- Item Weight : 12.4 ounces
- Dimensions : 7 x 0.42 x 9.19 inches
- Best Sellers Rank: #535,745 in Books (See Top 100 in Books)
- #77 in Object-Oriented Design
- #93 in Object-Oriented Software Design
- #99 in Software Testing
- Customer Reviews:
About the author

Discover more of the author’s books, see similar authors, read book recommendations and more.
Customer reviews
- 5 star4 star3 star2 star1 star2 star79%15%6%0%0%0%
- 5 star4 star3 star2 star1 star1 star79%15%6%0%0%0%
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonTop reviews from the United States
- 5 out of 5 stars
Very helpful for learning advanced Python
Reviewed in the United States on July 3, 2025This book covers advanced Python topics and helps you begin thinking pythonically. I read previous versions of this book at the author’s website, and it led me to take his bootcamp training.
Sending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
Applicable Lessons
Reviewed in the United States on July 10, 2025I've enjoyed reading this book. The topics capture Python programming idioms that you'd only pick up after years of hands-on on experience.
Sending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
You need this book
Reviewed in the United States on February 19, 2025I know Python well enough to do a lot of different things. This book will take your skills to the next level.
One person found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
Thin book, highly focused on the important stuff
Reviewed in the United States on February 4, 2025Loved it. Great coverage of generators, comprehensions and decorators. Very glad to see evangelism for unit testing.
One person found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
Excellent for intermediate developers
Reviewed in the United States on December 21, 2024I thought I was progressing along pretty well in my quest learning Python. This book (the pre published version) changed all that and unlocked a deeper understanding of the language and better mental models for writing production worthy code. There is an ocean of material for beginners and some for more experienced developers but very little for those in-between. This book fills that void perfectly by explaining how crucial aspects of Python works and ways to incorporate that knowledge into your everyday code.
7 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 3 out of 5 stars
A decent start, but...
Reviewed in the United States on December 29, 2025First, this book comes in at a very short 180 pages for a $65 list price. That's 36 cents a page folks! The author spent at least two pages ranting about how bad it is to catch all exceptions because it led to difficult bug in his experience. I don't disagree but that's 72+ cents for this prolonged anecdote.
This book ends halfway through. It should have been much broader and deeper. For example, the chapter on testing does not cover pytest.
Moreover, it's really unclear to me who this book is for: You need decent familiarity with Python already to enter into this book. The author cherrypicked some features (like comprehensions) to introduce and discuss. My question is: how do you get far enough in Python to qualify for reading this book while not encountering comprehensions? Same goes with logging and exceptions and many of the other topics in this book.
I'm not an advanced Pythonista by any stretch but I personally don't feel I learned enough "new things" in reading this book to justify the expense.
4 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Top reviews from other countries
Ahmad5 out of 5 starsAwesome
Reviewed in the United Kingdom on March 25, 2025It's not a comprehensive book about Python, but it focuses on aspects which are confusing. That's perfect, isn't it?!
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Mauro Gatti5 out of 5 starsA concise, intermediate-level book on Python.
Reviewed in Italy on March 26, 2025Concise and useful.
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again













