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

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 38 reviews)

Ratings Distribution

  • 5 Stars

     

    (34)

  • 4 Stars

     

    (3)

  • 3 Stars

     

    (1)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

100%

of respondents would recommend this to a friend.

Pros

  • Well-written (33)
  • Helpful examples (32)
  • Accurate (29)
  • Easy to understand (24)
  • Concise (21)

Cons

No Cons

Best Uses

  • Intermediate (35)
  • Expert (28)
  • Student (10)
  • Novice (8)
    • Reviewer Profile:
    • Developer (28), Designer (4), Maker (4), Sys admin (4), Educator (3)

Reviewed by 38 customers

Displaying reviews 1-10

Back to top

Previous | Next »

 
5.0

Masterfully written. The BEST book about Python to date!

By Reddy Kilowatt

from Silicon Valley, USA

About Me Developer

Verified Reviewer

Pros

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

Cons

    Best Uses

    • Expert
    • Intermediate
    • Novice
    • Student

    Comments about oreilly Fluent Python:

    I've been using Python for over 10 years. This book has taught me concepts
    that I thought I understood.

    This book is so well-written, it is incredible.
    I wish Mr Ramalho would have been my instructor early on in life.
    I'm sure I would have gotten a better education.

    I am looking forward to more books from this author.

    (1 of 1 customers found this review helpful)

     
    5.0

    Best python book I have ever read

    By gary

    from dublin, ireland

    About Me Sys Admin

    Verified Reviewer

    Pros

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

    Cons

      Best Uses

      • Expert
      • Intermediate
      • Novice
      • Student
      • Universally Applicable

      Comments about oreilly Fluent Python:

      * Excellent didactic style
      * Covers a complete range of topics without being overly verbose
      * Examples really highlight the python language idioms

      Cannot praise this book enough. There is a wealth of information contained within, not just original work but also links to talks/blogs where further information can be obtained. You can simply dive and start reading though (as I did with concurrency with futures), but once I had read that chapter I was hooked on the author's style.

       
      5.0

      For Intermediate Programmers to Get to Next Level

      By ronb

      from Oregon

      About Me Programmer

      Verified Reviewer

      Pros

      • Exciting To Read
      • Helpful examples
      • Well-written

      Cons

        Best Uses

        • Expert
        • Intermediate

        Comments about oreilly Fluent Python:

        Fluent Python was a joy to read. It captured my imagination like a John le Carré novel, I could not put it down. What would I learn next!

        For the last year, I have been trying to jump to the next level in my understanding of Python. I had been writing competent python code off and on for several years. I had a feeling of what the next level must be like, but I just could not grasp its full meaning. Fluent Python brought it all into focus. The perfect book at just the right time in my development as a python programmer. With each page, I gained a new insight into how to make my code more effective. At every juncture, I knew how I could apply what I had just read in my own programming. It was actually quite thrilling.

        Contrary to popular advice, I don't read sitting at the keyboard. But I often have to get out of my La-z-boy to go and try some confusing piece of sample code. Or the text is so poorly written, I have to backup and reread a section several times. Often, it becomes a chore to push through the last few pages of a chapter. But reading Fluent Python was exciting, I could put it down and finished the first ten chapters (~300 page) in one sitting

         
        5.0

        Simply awesome

        By zero323

        from Poland

        About Me Maker

        Verified Reviewer

        Pros

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

        Cons

          Best Uses

          • Expert
          • Intermediate
          • Novice
          • Student

          Comments about oreilly Fluent Python:

          The best language specific book I've seen in a long time and an essential reading for any Python developer.

           
          5.0

          Awesome

          By Chill

          from Massachusetts

          About Me Developer

          Verified Buyer

          Pros

          • Accurate
          • Well-written

          Cons

            Best Uses

            • Expert
            • Intermediate

            Comments about oreilly Fluent Python:

            An in-depth but readable deep-dive into Python. Wonderful to step up your understanding (though certainly not a first Python book; if that's what you want look elsewhere).

             
            5.0

            "Must Read" for every Python developer

            By Arminius

            from Munich, Germany

            About Me Data Scientist, Developer, Educator

            Verified Buyer

            Pros

            • Accurate
            • Helpful examples
            • In-depth
            • Well-written

            Cons

              Best Uses

              • Expert
              • Intermediate

              Comments about oreilly Fluent Python:

              If you start reading a book and feel that it earned its price before finishing the first 30%, you know this is a great book. The term "must read" is often over-used in the dev book area, but "Fluent Python" really deserves it. I had something like a revelation, when somebody really good at explaining stuff causes all the pieces to snap together. After finishing the book I gained a bit of real understaning why and how certain things work in Python. That's the kind of "take with you to an island" (as well as Wi-Fi, a notebook and Python < g>) book.

               
              5.0

              Definitely a must read!

              By Nikolay

              from Minsk, Belarus

              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:

                The "Fluent Python" book by Luciano Ramalho is a definitely a must read for any experienced Python developer who wants to be a real expert! (or for mid-level working to improve the experience)

                The book covers multiple topics on how and why the language was implemented and on how to use Python effectively to solve common programming tasks.

                For example, the from first chapter explains special ("dunder", like in __init__) methods and answers on a very common question of beginner Python developers: "Why len() is a function, not a method?".

                The following chapters explain many other details of Python: how are dictionaries represented in memory, what are immutability of built-in types, how the Unicode is handled in Python, how to use asyncio module, to name a few.

                I must admit that the whole book is quite practice-oriented. Most of the concepts are explained on small, but rather practical programs, in some cases the full source of the larger programs are just placed in the book Appendix. In examples, the author uses test-driven approach with doctest module.

                When I've read through few first chapters, my intention was to throw away some recently written code and redesign it from the scratch...

                The book is mainly addresses Python 3.4, but most of the text is equally applied to Python 2.7 (and, for sure, to brand new 3.5).

                And don't miss the "Python Jargon" section in the afterword - it explains in details most of the terms and buzzwords that seasoned Pythonistas use every day, sometimes even without thinking of exact meaning.

                (1 of 12 customers found this review helpful)

                 
                3.0

                For advanced coders

                By mpilotto

                from Brazil

                Pros

                • Concise
                • Easy to understand
                • Well-written

                Cons

                  Best Uses

                  • Expert

                  Comments about oreilly Fluent Python:

                  Book looks like very complete and the writing style is also easy to understand however I've found since first chapter that it's not for initial level coders. If you think this book you can learn python from beginning is a great mistake.

                  (1 of 2 customers found this review helpful)

                   
                  5.0

                  A Book I wholeheartedly Recommend

                  By PG

                  from Bangalore

                  About Me Designer, Developer, Educator

                  Verified Reviewer

                  Pros

                  • Concise
                  • Well-written

                  Cons

                    Best Uses

                    • Expert
                    • Intermediate

                    Comments about oreilly Fluent Python:

                    The books gives excellent insights to the spirit of Python. Having programmed in Java and C++, I was a little confused about OO in Python till I read Fluent Python. I have read the book twice through and am sure to revisit the pages often again.

                    (1 of 1 customers found this review helpful)

                     
                    5.0

                    Great throughout, but especially great on async programming

                    By Dan

                    from New Zealand

                    About Me Developer

                    Verified Reviewer

                    Pros

                    • Fun
                    • Helpful examples
                    • Insightful
                    • Well-written

                    Cons

                      Best Uses

                      • Expert
                      • Intermediate
                      • Student

                      Comments about oreilly Fluent Python:

                      The book is great fun and very readable the whole way through. Where it really shines though, is in the chapters on coroutines, concurrency and the new asyncio library. These are difficult concepts but author Luciano Ramalho does an excellent job of explaining them.

                      I really liked the consistent structure of the book: the annotated code examples, the 'further reading' sections, the often-fascinating 'soapbox' sections.

                      I bought this book expecting to browse a few chapters but it's so good that I couldn't help myself - I read it cover-to-cover.

                      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:  DAISY, ePub, Mobi, PDF
                      Print & Ebook:  $54.99
                      Print:  $49.99