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
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.
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: #18,156 in Books (See Top 100 in Books) #2 in Object-Oriented Design #8 in Python Programming #12 in Software Development (Books)
Customer Reviews: 4.7 4.7 out of 5 stars (739) var dpAcrHasRegisteredArcLinkClickAction; P.when(‘A’, ‘ready’).execute(function(A) { if (dpAcrHasRegisteredArcLinkClickAction !== true) { dpAcrHasRegisteredArcLinkClickAction = true; A.declarative( ‘acrLink-click-metrics’, ‘click’, { “allowLinkDefault”: true }, function (event) { if (window.ue) { ue.count(“acrLinkClickCount”, (ue.count(“acrLinkClickCount”) || 0) + 1); } } ); } }); P.when(‘A’, ‘cf’).execute(function(A) { A.declarative(‘acrStarsLink-click-metrics’, ‘click’, { “allowLinkDefault” : true }, function(event){ if(window.ue) { ue.count(“acrStarsLinkWithPopoverClickCount”, (ue.count(“acrStarsLinkWithPopoverClickCount”) || 0) + 1); } }); });
13 reviews for Fluent Python: Clear, Concise, and Effective Programming
Add a review
Original price was: $79.99.$43.99Current price is: $43.99.

Billy slusser –
If you wanna get technical with python.
Great book! It explains the parts of python you might not learn any where else. A must have for python enthusiasts.
golden_ –
Clear, concise and effective writing!
This is an excellent book for learning how to use the Python language proficiently. It is written for experienced developers, especially those who are experts in another language, but want to use Python effectively and elegantly.Chapter 1 explains the Python object model. It is very eye-opening, and is foundational to the goal of the book–teaching you how to write fluent Python code. The author advises that everyone should read chapter 1, then pick and choose topics of interest from the rest of the book. The topics covered in the next 23 chapters are too numerous to list here, but you are sure to find what you are looking for, unless you are looking for GUI programming, which isn’t very elegant, no matter what. But I digress.This book is hefty, 980 pages long. It is packed with good information, no fluff. Example scripts are stripped down to illustrate precisely the concept being taught. You can run the examples if you want to, but you don’t have to in order to learn what is being taught. The text is very well written. I highly recommend this book.
mrklean02 –
Great wisdom unlocked
First of all, let me just say that this isn’t a book at all, it is some tome some wise ancient scribe wrote. I have been working in Technology for over 20 years now and I have been interested in it for probably another 20 years before that. In that time I have read many programming books, constantly looking for more advanced topics. I would read and be very disappointed, they were mostly always filled with fluff. I recently decided to finally give Python a try. I am at a point where I am doing more advanced projects and wanted a book to do just that. When I go to Stack Overflow or other sites like that for information. I want to be able to really understand the why behind some of the explanations. I don’t want just to copy and paste. The book Python Crash Course helped get the basics down, this book has helped with the more advanced structure.There are two sections that have helped me the most: Functions as objects and Object-oriented idioms. I was going through many videos, Google searches, and some books to get a deeper understanding of this. this book is helping me to do just that. There is a lot of information in this book. Also, the index is decent. Many technology books lack in having a good one.
M. Martin –
In depth with clear explanations.
This is definitely not a beginner book. I’m not one for doing things just to by “Pythonic” but this book gives good explanations of the practical reasons for many of the more current syntax and conventions besides just making fewer lines of code.
Dmitrii –
Favorite Python book
My primary source for learning advanced Python
Justina Chen –
Good but there are better books
OK book for learning Python. I also recommend another brand for the book to learn Python, which is published by deBarros. I am studying data science with an expected graduation date of July 2026and have several of the data science and programming books made by deBarros
Raúl S. –
Me encanta, es buen libro
Excelente, vino en muy buenas condiciones , muy satisfecho con la compra
Ivan Felipe Calvo Perez –
Great book for those that are getting started on Data Engineering.
Great book for those that are getting started on Data Engineering.
Athlos –
Great content
Leonardo S. –
O livro é excelente e aprofunda vários (todos?) aspectos da linguagem. Não é um livro para iniciantes — se você for um, não compre esse livro agora —, mas para aqueles que já possuem no mínimo conhecimento intermediário de Python (o próprio autor menciona isso), visto que ele fornece um “algo a mais” àquilo que você sabe/acha que sabe. Acredito que seja o livro definitivo para programadores Python.
Ayoub Haida –
The book was ruined, I don’t know if it’s the shipping service, or something else, plus I thought it’s colored not a 700sek for a BW version, trash
TekSkill –
Excellent book for understanding and must be used as a reference. It is not for the beginner and as such should not be expected as a tutorial. Once the basics are mastered, then this book comes in to explain why the way things work. For example, if you want to know what a higher order function is and how a map function works, this book is there for you. The indexing is excellent with alphabetical ordering. Deep dive with this book by your side is all I would say. Have not read even a quarter of the book but already impressed. Definitely a desktop reference.
Fanta –
Un libro per chi gia’ programma in Python, che copre l’uso idiomatico del linguaggio. La nuova edizione supera le 1000 pagine!