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

Ratings Distribution

  • 5 Stars

     

    (39)

  • 4 Stars

     

    (3)

  • 3 Stars

     

    (1)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

100%

of respondents would recommend this to a friend.

Pros

  • Well-written (38)
  • Helpful examples (37)
  • Accurate (33)
  • Easy to understand (27)
  • Concise (23)

Cons

No Cons

Best Uses

  • Intermediate (40)
  • Expert (32)
  • Student (11)
  • Novice (9)
    • Reviewer Profile:
    • Developer (30), Maker (6), Designer (5), Educator (4), Sys admin (4)

Reviewed by 43 customers

Displaying reviews 1-10

Back to top

Previous | Next »

 
5.0

Extensive coverage

By MichaelC

from Irvine, CA

About Me Designer, Developer

Verified Buyer

Pros

  • Easy to understand
  • Helpful examples
  • Well-written

Cons

    Best Uses

    • Expert
    • Intermediate

    Comments about oreilly Fluent Python:

    Still working through it but I can already appreciate the quite extensive coverage of the language and references to various useful packages.
    Very clear language and explanations, with lots of pertinent details.
    For example, the chapter on unicode and various conversions was very useful for something I was working on recently.

     
    5.0

    An excellent guide for taking your skills to the next level

    By Matthew

    from Des Moines, IA

    About Me Amateur Programmer, Hobbyist

    Verified Reviewer

    Pros

    • Accurate
    • Helpful examples
    • Well-written

    Cons

      Best Uses

      • Expert
      • Intermediate

      Comments about oreilly Fluent Python:

      This is one of the best Python books that I have read. It covers many of the same topics that are covered in other python books but shows you how to REALLY use them.

      For example, you may have seen named tuples mentioned in other books, but this one will tell you why you may prefer one over a dictionary or standard tuple, as well as explaining why dictionaries have a much larger overhead. You'll also learn how they are implemented and how to use similar strategies for your own classes.

      The chapters on metaprogramming and metaclasses are particularly valuable. I have not seen any other book that gives a compelling example of why you may use a metaclass (most examples are too trivial). The examples used in this book (which solve a problem from the earlier coverage of descriptors) show a legitimate use such complex techniques.

      The chapters on concurrency have allowed me to finally start adding concurrency to my own programs.

       
      5.0

      Wish I Bought It Earlier

      By Ogi

      from Portland, OR

      About Me Analysit, Maker

      Verified Buyer

      Pros

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

      Cons

        Best Uses

        • Intermediate
        • Novice
        • Student

        Comments about oreilly Fluent Python:

        I'm only part-way through the book, but what I've gone through so far has been superbly written. I've long considered myself a intermediate python user that leans toward the beginner level of proficiency, so I was worried this book might be too advanced for me; but that wasn't the case. The examples, and explanations are so good, I'm definitely learning more about Python every time I read more.

        (1 of 1 customers found this review helpful)

         
        5.0

        If you really want to understand Python then read this book.

        By CW Andrews

        from Columbus, OH

        About Me Maker

        Pros

        • Accurate
        • Helpful examples
        • Well-written

        Cons

          Best Uses

          • Expert
          • Intermediate

          Comments about oreilly Fluent Python:

          This is a great book which imparts useful and immediately applicable concepts and pieces of wisdom. However, this book really shines as a deep dive into the language, how and why various things are the way they are in Python, and give one a much better handle on what is pythonic.

          Well worth multiple reads.

           
          5.0

          I love this book

          By Pete

          from York, UK

          About Me Bioinformatician, Developer, Educator

          Verified Buyer

          Pros

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

          Cons

            Best Uses

            • Expert
            • Intermediate

            Comments about oreilly Fluent Python:

            This is the best guide I have seen to learn how to program formally in Python. It's really good to see these topics treated properly in Python (and not have to translate Java code mentally as you read...). I teach several Python courses a year, and this is definitely something I will recommend to delegates so that they don't get into bad habits (or avoid copying my bad habits :).

            It's also essential source material for arguing with programmers who think that a "real" language has to have curly braces...

            (1 of 1 customers found this review helpful)

             
            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 2 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).

                      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