Fluent Python
Clear, Concise, and Effective Programming
Publisher: O'Reilly Media
Final Release Date: July 2015
Pages: 768

Python’s simplicity lets you become productive quickly, but this often means you aren’t using everything it has to offer. With this hands-on guide, you’ll learn how to write effective, idiomatic Python code by leveraging its best—and possibly most neglected—features. Author Luciano Ramalho takes you through Python’s core language features and libraries, and shows you how to make your code shorter, faster, and more readable at the same time.

Many experienced programmers try to bend Python to fit patterns they learned from other languages, and never discover Python features outside of their experience. With this book, those Python programmers will thoroughly learn how to become proficient in Python 3.

This book covers:

  • Python data model: understand how special methods are the key to the consistent behavior of objects
  • Data structures: take full advantage of built-in types, and understand the text vs bytes duality in the Unicode age
  • Functions as objects: view Python functions as first-class objects, and understand how this affects popular design patterns
  • Object-oriented idioms: build classes by learning about references, mutability, interfaces, operator overloading, and multiple inheritance
  • Control flow: leverage context managers, generators, coroutines, and concurrency with the concurrent.futures and asyncio packages
  • Metaprogramming: understand how properties, attribute descriptors, class decorators, and metaclasses work
Table of Contents
Product Details
About the Author
Colophon
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyFluent Python
 
5.0

(based on 15 reviews)

Ratings Distribution

  • 5 Stars

     

    (15)

  • 4 Stars

     

    (0)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

100%

of respondents would recommend this to a friend.

Pros

  • Helpful examples (14)
  • Well-written (13)
  • Accurate (12)
  • Easy to understand (9)
  • Concise (8)

Cons

No Cons

Best Uses

  • Intermediate (15)
  • Expert (9)
  • Student (5)
  • Novice (3)
    • Reviewer Profile:
    • Developer (13)

Reviewed by 15 customers

Sort by

Displaying reviews 1-10

Back to top

Previous | Next »

 
5.0

Solid Presentation and Explanations

By Tausendsassa

from Munich, Germany

About Me Software architect

Verified Buyer

Pros

  • Accurate
  • Concise
  • Helpful examples

Cons

    Best Uses

    • Expert
    • Intermediate

    Comments about oreilly Fluent Python:

    I am fluent in many programming languages and needed a fast entry into the core aspects of python, learning fast the python idioms of programming.

    I really enjoyed the read and would recommend to anyone else who is a proficient programmer but has little prior knowledge of python.

    Great work!

    (1 of 1 customers found this review helpful)

     
    5.0

    Great book.

    By resal

    from Philadelphia

    About Me Developer

    Verified Reviewer

    Pros

    • Accurate
    • Helpful examples
    • Well-written

    Cons

      Best Uses

      • Intermediate

      Comments about oreilly Fluent Python:

      Full of useful and practical information. The best python book I've ever read. Such a fantastic book. I also love that the author doesn't use the irritating Foo and Bar examples and instead presents real classes to convey his points such as Vector2d.

      The only thing that I wish was included was profiling and performance optimization. There are useful info (like using __slots__ to reduce memory) here and there but I wish there was a dedicated chapter for it.

      In terms of revisions before the final release, my suggestion are: 1) include the new async syntax in python 3.5 for coroutines, 2) a short section on type hinting.

      Anyways, extremely useful book to learn intermediate-advanced python concepts and tricks.

      (2 of 2 customers found this review helpful)

       
      5.0

      I do recommend it

      By Roger test infected

      from Sao Jose dos Campos, BR

      About Me Developer

      Verified Reviewer

      Pros

      • Easy to understand
      • Helpful examples
      • Well-written

      Cons

        Best Uses

        • Intermediate
        • Novice
        • Student

        Comments about oreilly Fluent Python:

        What I like most is the way the author writes where you a sort of feel challenged and it is hard stop reading.
        In other words, it is not easy write a technical content in such an enjoyable way.

        In terms of code content, it's amazing and rich. It's impressive when you see a code written in a Pythonic way compared they way you wrote before.
        There are lots of library and code examples that will help you be more a pragmatic programmer.

        Definitely it is worth and a must read for all developers levels. It also is an essential reference book covering from Python core to concurrency, metaprogramming and much more!

        (2 of 2 customers found this review helpful)

         
        5.0

        For those wanting to truly 'grok' Python

        By Red Squirrel

        from Poland

        About Me Developer

        Verified Buyer

        Pros

        • Accurate
        • Concise
        • Helpful examples
        • Insightful
        • Well-written

        Cons

          Best Uses

          • Expert
          • Intermediate

          Comments about oreilly Fluent Python:

          A truly excellent book that follows in the footsteps of Tim Peters' classic Zen of Python. This puts meat on the bones of that earlier work by detailing why and how Python can be so powerful in specific coding examples which will be helpful to a developer. At the heart of it is not so much the diversity of the libraries but the elegance and utility of the Python Data Model, and the author does a great job in explaining how this model can be leveraged by adapting user defined classes to it.
          After reading it you'll have a much deeper understanding of what it means to be 'Pythonic' and how to embody that in your code.

          The 'Soapbox' feature at the end of each chapter is a nice touch also.

          Fortunately, for someone like me who generally codes in Python 2.x the book is not tied too closely to the specifics of Python 3, and where there are differences the author points them out.

          I would strongly recommend this to either Pythonistas who are at intermediate level or beyond or experienced developers who are relatively new to Python.

          (1 of 3 customers found this review helpful)

           
          5.0

          Great book

          By Gianpaolo

          from Italy

          About Me Designer, Developer

          Verified Buyer

          Pros

          • Helpful examples
          • Well-written

          Cons

            Best Uses

            • Expert
            • Intermediate

            Comments about oreilly Fluent Python:

            A real Pythonic book, I enjoied a lot with it.

            (5 of 5 customers found this review helpful)

             
            5.0

            Clear, Concise, and Effective Book

            By aseeon

            from Poland

            About Me Developer, Python Engineer

            Verified Reviewer

            Pros

            • Accurate
            • Concise
            • Helpful examples
            • Well-written

            Cons

              Best Uses

              • Advanced
              • Expert
              • Intermediate

              Comments about oreilly Fluent Python:

              I have read many books about Python, some good and some bad. But this is the first book I consider a "Must Have" for every python programmer out there.

              The book covers a good range of knowledge, from list comprehensions to references, mutability and hashing.

              The examples are to the point and well thought out. They clearly convey to idea behind them and teach a particular topic.

              This book is for advanced python programmers not beginners.

              Summary: Well worth every penny!

              (2 of 2 customers found this review helpful)

               
              5.0

              The Pythonic way

              By Dyego Cantu

              from Pato Branco, Brazil

              About Me Developer, Maker

              Verified Reviewer

              Pros

              • Accurate
              • Concise
              • Easy to understand
              • Helpful examples
              • Well-written

              Cons

                Best Uses

                • Expert
                • Intermediate
                • Student

                Comments about oreilly Fluent Python:

                Fluent Python is about going beyond the "how to" and achieve "because do".

                I'm reading the "early release" version and I am looking forward to the next chapters.
                The Fluent Python book addresses key aspects and even controversial, such as special methods and interfaces of language, in a clear and objective way, facilitating its practical application.
                Luciano Ramalho, the author, is brilliant in humanizing the high knowledge that only a few (like the author) can get.

                Surely this is a exemplar for the library of every "pythonic" developer.

                (2 of 2 customers found this review helpful)

                 
                5.0

                The path to become a Python guru

                By Elias Dorneles

                from Florianopolis, Brasil

                About Me Developer

                Verified Reviewer

                Pros

                • Accurate
                • Helpful examples
                • Interesting Back Stories
                • Well-written

                Cons

                  Best Uses

                  • Expert
                  • Intermediate

                  Comments about oreilly Fluent Python:

                  While this book alone won't make you fluent in Python (you still need a good bit of practice for that), it sure is a helpful shortcut.

                  I'm reading the early release (it hasn't been finished yet, at the time of this writing) and I've already been able to use some of the ideas in my own work. I also feel my reasoning about Python code has improved quite a bit.

                  I'm grateful that someone is writing a book like this, that not only shows you HOW to do stuff but also explains WHY things are the way they are. This is clearly a labor of love -- collecting stories, constructing examples, checking references and trying to make it digestible for other people.

                  The book really comprises a lot of value, it's a great read for anyone who likes the Python language.

                  (2 of 2 customers found this review helpful)

                   
                  5.0

                  Probably the best Python book around

                  By Luis

                  from Boston, MA

                  Verified Reviewer

                  Pros

                  • Accurate
                  • Easy to understand
                  • Helpful examples
                  • Well-written

                  Cons

                    Best Uses

                    • Intermediate
                    • Student

                    Comments about oreilly Fluent Python:

                    This is probably the best book on intermediate python ever. Unlike other intermediate level python books, this is not just a cookbook but rather expands the examples with clear explanations. The way the author explains the subjects is so clear and shows such a deep knowledge of the matter that it makes it a real page turner (how many times can you apply that to programming books?). Despite being only a early release the fact that new chapters are added almost every two weeks kind of feels like I have a subscription to a professional edited Python newsletter. The only complain is that the estimated size is only 400 pages, please make it longer. Congratulations to the author.

                    (5 of 5 customers found this review helpful)

                     
                    5.0

                    The third book on Python you'll need

                    By bgschaid

                    from Austria

                    About Me Developer

                    Verified Buyer

                    Pros

                    • Accurate
                    • Easy to understand
                    • Helpful examples
                    • Well-written

                    Cons

                      Best Uses

                      • Expert
                      • Intermediate

                      Comments about oreilly Fluent Python:

                      I'm currently reading this book in the Early Access so I can only judge the first 6 chapters, but these chapters alone are worth the price of the book.

                      This book is not an introductory text on Python (that would be the first book). It explains all the things that would only confuse beginners but are good to know once you've mastered the basics.

                      My recommendation is that you read this book once you've mastered a basic text AND done some Python-projects on your own because then you'll have encountered things were you said "strange, why does this work this way?" (for instance "why is len not a method but a function?"). And only then you'll be able to really appreciate the book.

                      Apart from the great technical content I like the "soapbox"-sections at the end of each chapter where the author says "these were the technical facts (no discussion about these) now here comes my opinion. But that is my opinion". Not all books make that distinction and facts and opinions of the author are mixed.

                      So: don't read this book after your first Python book but some months (in which you worked with Python) later. But if you want to continue seriously working with Python then this book is great. Therefor: the third book on Python you should read

                      Displaying reviews 1-10

                      Back to top

                      Previous | Next »

                       
                      Buy 2 Get 1 Free Free Shipping Guarantee
                      Buying Options
                      Immediate Access - Go Digital what's this?
                      Ebook: $42.99
                      Formats:  ePub, Mobi, PDF
                      Print & Ebook: $54.99
                      Pre-Order  Print: $49.99
                      August 2015 (est.)