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

Ratings Distribution

  • 5 Stars

     

    (40)

  • 4 Stars

     

    (4)

  • 3 Stars

     

    (1)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

98%

of respondents would recommend this to a friend.

Pros

  • Well-written (39)
  • Helpful examples (38)
  • Accurate (34)
  • Easy to understand (28)
  • Concise (23)

Cons

No Cons

Best Uses

  • Intermediate (41)
  • Expert (33)
  • Student (12)
  • Novice (9)
    • Reviewer Profile:
    • Developer (31), Maker (6), Designer (5), Educator (4), Sys admin (4)

Reviewed by 45 customers

Displaying reviews 1-10

Back to top

Previous | Next »

 
5.0

Best Python book I've read.

By jpw

from Denver, CO

About Me Developer

Pros

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

Cons

    Best Uses

    • Expert
    • Intermediate
    • Student

    Comments about oreilly Fluent Python:

    Very useful for someone who is already experienced with Python in gaining a much deeper understanding of the language and how to employ it more effectively. Written in a very understandable style with great structure. Favorite programming book I've encountered.

    (2 of 5 customers found this review helpful)

     
    4.0

    Length of book makes it impossible to read

    By Stephan Foley

    from New York

    Comments about oreilly Fluent Python:

    I'm giving this four stars. With that said, I read 65 pages and donated it to the library. The problem is not with the author, but with OReilly for insisting on publishing 700 page books so they can charge $50. There is way too much obvious filler...for example pages filled with lists of methods that you can easily get from the documentation. After I got to page 65 I asked myself "do I want to spend another 50 hours of my life reading this". I would like to note that none of the reviewers I've seen have actually read the entire book...they are all "just beginning it" or "part of the way through it".

    Take this book, reduce it down to 200 or so pages, charge $20 and give us something that is inspiring and useful. Don't force your authors to write 700 pages...it really shows.

    Again, nothing to do with the author. I can see a lot of thought and work went into producing this book. But, as far as 700 page OReilly books go, I haven't bought one for 5 years because I think it is dumb to publish computer books that are so long, and it looks like I won't be buying one again for a long time!

     
    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.

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

                    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