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

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
 
4.9

(based on 22 reviews)

Ratings Distribution

  • 5 Stars

     

    (20)

  • 4 Stars

     

    (2)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

100%

of respondents would recommend this to a friend.

Pros

  • Helpful examples (20)
  • Accurate (18)
  • Well-written (18)
  • Easy to understand (14)
  • Concise (11)

Cons

No Cons

Best Uses

  • Intermediate (20)
  • Expert (14)
  • Student (5)
  • Novice (4)
    • Reviewer Profile:
    • Developer (19), Maker (3)

Reviewed by 22 customers

Sort by

Displaying reviews 1-10

Back to top

Previous | Next »

 
5.0

This is the Python book I've been waiting for

By Dylan Mc

from Portland, Oregon

About Me Developer, Educator, Maker

Verified Reviewer

Pros

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

Cons

    Best Uses

    • Expert
    • Intermediate

    Comments about oreilly Fluent Python:

    The Python books I've encountered so far have either been reference books for experienced Python programmers, or introduction to programming using Python. What I've been looking for is a book that explains "the Python way" of programming to experienced programmers. I've only dipped my toes in to this book, but already I can tell it's exactly what I've been looking for.

    As an example, I love the way the book starts out both explaining the Pythonista name for, and best way to use Python's special methods, also known as dunder methods. When I was trying to learn how best to use them via Google or the Python reference books I owned, I had a really hard time. Here, in Chapter One, they're named, motivated, and enumerated. I was impressed.

    In general, I think more languages could use a book that could be summarized as "here's how to write programs in language < foo>, guided by someone with good taste in that language." I look forward to having more excuses to dive into the chapters of this book.

     
    4.0

    Good coverage of Python

    By DanD

    from San Jose, CA

    About Me Developer

    Verified Buyer

    Pros

    • Easy to understand

    Cons

      Best Uses

      • Novice

      Comments about oreilly Fluent Python:

      A good book on the ins and outs of Python. Someone like me, with little or no python experience is able to grasp the content fairly quickly and easily. recommended.

       
      5.0

      A "must read" for serious Python programmers

      By philipp

      from Austria

      About Me Designer, Developer

      Verified Reviewer

      Pros

      • Accurate
      • Helpful examples
      • Well-written

      Cons

        Best Uses

        • Expert

        Comments about oreilly Fluent Python:

        I thought I knew Python very well. Then I read this book. Now I know I didn't. The author has enormous knowledge not only of Python, but also of programing languages, design patterns and algorithms in general and understands it very well to guide through important aspects of Python in an exciting, humorous and still concise way. My future Python programs will be shorter, easier to use, easier to read, faster running and much more fun to write.
        Thank you, Luciano Ramalho!

         
        5.0

        import this

        By Slam

        from Ukraine

        About Me Developer

        Verified Buyer

        Pros

        • Accurate
        • Concise
        • Helpful examples

        Cons

          Best Uses

          • Expert
          • Intermediate

          Comments about oreilly Fluent Python:

          Great book to improve intermediate skills.
          I've bought this book during early release stage, and even at this point its worth it's full price.
          - fields that often lacks attention
          - perfect soapboxes - you can collect a huge list of "further reading" high-quality references

          The thing that can be emproved (at current edition I have now) is examples. Sometimes they can be bit closer to real-world problems

           
          5.0

          Thorough and well-written

          By Owen

          from UK

          About Me Developer, Sys Admin

          Pros

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

          Cons

            Best Uses

            • Expert
            • Intermediate

            Comments about oreilly Fluent Python:

            "Fluent Python" is a thorough tour of Python language features and, much more importantly, the design and thought processes behind them. I'd recommend this book for any intermediate to advanced Python programmer.

            In each section, the author highlights a particular facet of Python's design - the data model, data structures, or inheritance, to pick a few example sections. He then takes a practical look at this feature, demonstrating what can be done with it, and explains the underlying mechanisms as he goes.

            The first part of this works as a very effective tour through the available language features and methods, and even if you're already a confident working Python programmer you're likely to find some method or trick in here that you didn't know.

            The second part of this works to reinforce not only why the language was designed in this way (helping to understand common patterns and use cases), but also the most "Pythonic" way to get the job done. However, please don't misunderstand my use of the word Pythonic. This is absolutely not a prescriptive style guide. Instead, the author takes the approach that by understanding how certain features are implemented under the hood, you will be able to better choose which constructs to use for which jobs - for example, when you might prefer to use a list, tuple or set.

            The result of this is to give you an array of powerful language features and highlight the flexibility that Python gives you in using them.

            This is a content-dense book, and not a how-to guide or tutorial - I'd definitely recommend it for people who are already comfortable programming in Python. If that's you, then I'm fairly sure you will come away from this book having learned something useful. Definitely recommended.

             
            4.0

            Great book!

            By Dan

            from Laurel, MD

            About Me Developer

            Verified Reviewer

            Pros

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

            Cons

              Best Uses

              • Expert
              • Intermediate

              Comments about oreilly Fluent Python:

              I found this book to fit my needs perfectly - as a regular Python coder who has failed to use all the neat capabilities Python has, it both explained the advanced capabilities and the logic behind them. Bravo, nice work! I especially liked the "soap box" editorials at the end of every chapter, and the asides relating to differences in Python 2 (the book focuses on Python 3, specifically version 3.4 and the upcoming version 3.5).

              I have been reading the "early release" copy and it has some typos and errors, but there are remarkably few of them. I'm looking forward to the latest and final release!

               
              5.0

              broad and compelling

              By claudiomarcoz

              from osasco , sao paulo Brazil

              Pros

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

              Cons

                Best Uses

                • Intermediate

                Comments about oreilly Fluent Python:

                Excellent, fluid with a comprehensive approach. It made me think about many subjects that is sometimes overlooked

                (1 of 1 customers found this review helpful)

                 
                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!

                  (2 of 2 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!

                      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
                      Print: $49.99