Customers who viewed this item also viewed
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
Fluent Python: Clear, Concise, and Effective Programming
Purchase options and add-ons
Don't waste time bending Python to fit patterns you've learned in other languages. Python's simplicity lets you become productive quickly, but often this means you aren't using everything the language has to offer. With the updated edition of this hands-on guide, you'll learn how to write effective, modern Python 3 code by leveraging its best ideas.
Discover and apply idiomatic Python 3 features beyond your past experience. Author Luciano Ramalho guides you through Python's core language features and libraries and teaches you how to make your code shorter, faster, and more readable.
Complete with major updates throughout, this new edition features five parts that work as five short books within the book:
- Data structures: Sequences, dicts, sets, Unicode, and data classes
- Functions as objects: First-class functions, related design patterns, and type hints in function declarations
- Object-oriented idioms: Composition, inheritance, mixins, interfaces, operator overloading, protocols, and more static types
- Control flow: Context managers, generators, coroutines, async/await, and thread/process pools
- Metaprogramming: Properties, attribute descriptors, class decorators, and new class metaprogramming hooks that replace or simplify metaclasses
- ISBN-101492056359
- ISBN-13978-1492056355
- Edition2nd
- PublisherO'Reilly Media
- Publication dateMay 10, 2022
- LanguageEnglish
- Dimensions7 x 2 x 9.25 inches
- Print length1012 pages
Frequently bought together

Customers who viewed this item also viewed
- Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to ProgrammingPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Monday, Nov 9
- Learning Python: Powerful Object-Oriented ProgrammingPaperbackFREE Shipping by AmazonGet it as soon as Monday, Nov 9
- Effective Python: 125 Specific Ways to Write Better Python (Effective Software Development Series)PaperbackFREE ShippingGet it Nov 19 - 27
- Automate the Boring Stuff with Python, 3rd EditionPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Monday, Nov 9
- Architecture Patterns with Python: Enabling Test-Driven Development, Domain-Driven Design, and Event-Driven MicroservicesPaperbackFREE Shipping by AmazonGet it as soon as Monday, Nov 9
- Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable SystemsPaperbackFREE Shipping by AmazonGet it as soon as Monday, Nov 9
Customers also bought or read
- Effective Python: 125 Specific Ways to Write Better Python (Effective Software Development Series)
Paperback$55.23$55.23FREE delivery Nov 19 - 27 - Architecture Patterns with Python: Enabling Test-Driven Development, Domain-Driven Design, and Event-Driven Microservices
Paperback$37.10$37.10FREE delivery Mon, Nov 9 - High Performance Python: Practical Performant Programming for Humans
Paperback$44.99$44.99FREE delivery Mon, Nov 9 - Powerful Python: Patterns and Strategies with Modern Python
Paperback$39.89$39.89FREE delivery Mon, Nov 9 - Python for Data Analysis: Data Wrangling with pandas, NumPy, and Jupyter
Paperback$43.99$43.99FREE delivery Mon, Nov 9 - Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to Programming#1 Best SellerFunctional Software Programming
Paperback$26.73$26.73Delivery Mon, Nov 9 - Python Testing with pytest: Simple, Rapid, Effective, and Scalable
Paperback$30.29$30.29Delivery Nov 12 - 16 - Designing Machine Learning Systems: An Iterative Process for Production-Ready Applications
Paperback$39.88$39.88FREE delivery Mon, Nov 9 - Python Data Science Handbook: Essential Tools for Working with Data
Paperback$44.18$44.18FREE delivery Mon, Nov 9 - Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow: Concepts, Tools, and Techniques to Build Intelligent Systems
Paperback$45.50$45.50FREE delivery Mon, Nov 9 - Tour of C++, A (C++ In-Depth Series)#1 Best SellerC++ Programming Language
Paperback$39.57$39.57FREE delivery Mon, Nov 9 - Beyond the Basic Stuff with Python: Best Practices for Writing Clean Code
Paperback$32.45$32.45FREE delivery Nov 24 - Dec 4 - Operating Systems: Three Easy Pieces#1 Best SellerComputer Operating Systems Theory
Paperback$28.27$28.27Delivery Mon, Nov 9 - Build a Large Language Model (From Scratch)#1 Best SellerComputer Neural Networks
Paperback$47.44$47.44FREE delivery Mon, Nov 9 - The Pragmatic Programmer: Your Journey To Mastery, 20th Anniversary Edition (2nd Edition)#1 Best SellerSoftware Testing
Hardcover$43.45$43.45FREE delivery Mon, Nov 9 - Grokking Algorithms, Second Edition: An illustrated guide for programmers and other curious people
Paperback$39.04$39.04FREE delivery Nov 18 - 25 - JavaScript: The Definitive Guide: Master the World's Most-Used Programming Language
Paperback$37.03$37.03FREE delivery Nov 24 - 29 - Effective TypeScript: 83 Specific Ways to Improve Your TypeScript
Paperback$41.33$41.33FREE delivery Mon, Nov 9
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
“Python is an easy to learn, powerful programming language.” Those are the first words of the official Python 3.10 tutorial. That is true, but there is a catch: because the language is easy to learn and put to use, many practicing Python programmers leverage only a fraction of its powerful features.
An experienced programmer may start writing useful Python code in a matter of hours. As the first productive hours become weeks and months, a lot of developers go on writing Python code with a very strong accent carried from languages learned before. Even if Python is your first language, often in academia and in introductory books it is presented while carefully avoiding language-specific features.
As a teacher introducing Python to programmers experienced in other languages, I see another problem that this book tries to address: we only miss stuff we know about. Coming from another language, anyone may guess that Python supports regular expressions, and look that up in the docs. But if you’ve never seen tuple unpacking or descriptors before, you will probably not search for them, and you may end up not using those features just because they are specific to Python.
This book is not an A-to-Z exhaustive reference of Python. Its emphasis is on the language features that are either unique to Python or not found in many other popular languages. This is also mostly a book about the core language and some of its libraries. I will rarely talk about packages that are not in the standard library, even though the Python package index now lists more than 60,000 libraries, and many of them are incredibly useful.
Who This Book Is For
This book was written for practicing Python programmers who want to become proficient in Python 3. I tested the examples in Python 3.10—most of them also in Python 3.9 and 3.8. When an example requires Python 3.10, it should be clearly marked.
If you are not sure whether you know enough Python to follow along, review the topics of the official Python tutorial. Topics covered in the tutorial will not be explained here, except for some features that are new.
Who This Book Is Not For
If you are just learning Python, this book is going to be hard to follow. Not only that, if you read it too early in your Python journey, it may give you the impression that every Python script should leverage special methods and metaprogramming tricks. Premature abstraction is as bad as premature optimization.
Editorial Reviews
About the Author
Product details
- Publisher : O'Reilly Media
- Publication date : May 10, 2022
- Edition : 2nd
- Language : English
- Print length : 1012 pages
- ISBN-10 : 1492056359
- ISBN-13 : 978-1492056355
- Item Weight : 2.31 pounds
- Dimensions : 7 x 2 x 9.25 inches
- Best Sellers Rank: #39,324 in Books (See Top 100 in Books)
- #7 in Object-Oriented Design
- #14 in Python Programming
- #22 in Computer Programming Languages
- Customer Reviews:
About the author

Luciano Ramalho was a Web developer before the Netscape IPO in 1995, and switched from Perl to Python in 1998. He has presented talks at PyCon US, OSCON, QCon, PythonBrasil, PyCon DE etc. Ramalho is a fellow of the Python Software Foundation and co-founder of Garoa Hacker Clube, the first hackerspace in Brazil. He is a Principal Consultant at Thoughtworks.
Customer reviews
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 customer reviews work on AmazonCustomers say
Generated from the text of customer reviews


























