Effective Python : 59 Specific Ways to Write Better Python 1st  Edition

Effective Python : 59 Specific Ways to Write Better Python 1st Edition (English, Paperback, Slatkin)

Share

Effective Python : 59 Specific Ways to Write Better Python 1st Edition  (English, Paperback, Slatkin)

4.4
54 Ratings & 11 Reviews
₹414
439
5% off
Hurry, Only 2 left!
  • Bank OfferExtra 5% off* with Axis Bank Buzz Credit Card
    T&C
  • Delivery
    Check
    Enter pincode
      Usually delivered in3-4 days
      ?
      Enter pincode for exact delivery dates/charges
    View Details
    Author
    Read More
    Highlights
    • Language: English
    • Binding: Paperback
    • Publisher: PEARSON
    • ISBN: 9789332552364, 9332552363
    • Edition: 1st Edition, 2015
    • Pages: 248
    Services
    • 10 Days Replacement Policy
      ?
    • Cash on Delivery available
      ?
    Seller
    BOOKCENTRE
    3.6
  • View more sellers starting from 340
  • Description
    Effective Python will help students harness the full power of Python to write exceptionally robust, efficient, maintainable, and well-performing code. Utilizing the concise, scenario-driven style pioneered in Scott Meyers's best-selling Effective C++, Brett Slatkin brings together 53 Python best practices, tips, shortcuts, and realistic code examples from expert programmers. Each section contains specific, actionable guidelines organized into items, each with carefully worded advice supported by detailed technical arguments and illuminating examples.
    • Covers Python algorithms, objects, concurrency, collaboration, built-in modules, and much more
    • Addresses both Python 3 and Python 2
    • Guides students to a far deeper understanding of the Python language, so they know why its unique idioms and rules of thumb make sense
    • Follows the enormously popular 'Effective' format proven in Scott Meyers' classic Effective C++
    Read More
    Specifications
    Book Details
    Publication Year
    • 2015 June
    Table of Contents
    • Chapter 1 : Pythonic Thinking
      Item 1 : Know Which Version of Python You’re Using
      Item 2 : Follow the PEP 8 Style Guide
      Item 3 : Know the Differences Between bytes, str and unicode
      Item 4 : Write Helper Functions Instead of Complex Expressions 
      Item 5 : Know How to Slice Sequences
      Item 6 : Avoid Using start, end and stride in a Single Slice 
      Item 7 : Use List Comprehensions Instead of Map and Filter 
      Item 8 : Avoid More Than Two Expressions in List Comprehensions 
      Item 9 : Consider Generator Expressions for Large Comprehensions 
      Item 10 : Prefer enumerate Over range 
      Item 11 : Use zip to Process Iterators in Parallel 
      Item 12 : Avoid else Blocks After for and while Loops 
      Item 13 : Take Advantage of Each Block in try / except / else / finally

      Chapter 2 : Functions 
      Item 14 : Prefer Exceptions to Returning None
      Item 15 : Know How Closures Interact with Variable Scope
      Item 16 : Consider Generators Instead of Returning Lists 
      Item 17 : Be Defensive When Iterating Over Arguments 
      Item 18 : Reduce Visual Noise with Variable Positional Arguments 
      Item 19 : Provide Optional Behavior with Keyword Arguments 
      Item 20 : Use None and Docstrings to Specify Dynamic Default Arguments 
      Item 21 : Enforce Clarity with Keyword-Only Arguments 

      Chapter 3 : Classes and Inheritance 
      Item 22 : Prefer Helper Classes Over Bookkeeping with Dictionaries and Tuples  Item 23 : Accept Functions for Simple Interfaces Instead of Classes 
      Item 24 : Use classmethod Polymorphism to Construct Objects Generically 
      Item 25 : Initialize Parent Classes with super 
      Item 26 : Use Multiple Inheritance Only for Mix-in Utility Classes 
      Item 27 : Prefer Public Attributes Over Private Ones 
      Item 28 : Inherit from collections.abc for Custom Container Types 

      Chapter 4 : Metaclasses and Attributes 
      Item 29 : Use Plain Attributes Instead of Get and Set Methods 
      Item 30 : Consider property Instead of Refactoring Attributes 
      Item 31 : Use Descriptors for Reusable property Methods 
      Item 32 : Use __getattr__, __getattribute__, and __setattr__ for Lazy Attributes  Item 33 : Validate Subclasses with Metaclasses 
      Item 34 : Register Class Existence with Metaclasses 
      Item 35 : Annotate Class Attributes with Metaclasses

      Chapter 5 : Concurrency and Parallelism 
      Item 36 : Use subprocess to Manage Child Processes 
      Item 37 : Use Threads for Blocking I / O, Avoid for Parallelism 
      Item 38 : Use Lock to Prevent Data Races in Threads 
      Item 39 : Use Queue to Coordinate Work Between Threads 
      Item 40 : Consider Coroutines to Run Many Functions Concurrently 
      Item 41 : Consider concurrent.futures for True Parallelism 

      Chapter 6 : Built-in Modules 
      Item 42 : Define Function Decorators with functools.wraps 
      Item 43 : Consider contextlib and with Statements for Reusable try/finally Behavior 
      Item 44 : Make pickle Reliable with copyreg 
      Item 45 : Use datetime Instead of time for Local Clocks 
      Item 46 : Use Built-in Algorithms and Data Structures 
      Item 47 : Use decimal When Precision Is Paramount 
      Item 48 : Know Where to Find Community-Built Modules 

      Chapter 7 : Collaboration 
      Item 49 : Write Docstrings for Every Function, Class, and Module 
      Item 50 : Use Packages to Organize Modules and Provide Stable APIs 
      Item 51 : Define a Root Exception to Insulate Callers from APIs 
      Item 52 : Know How to Break Circular Dependencies 
      Item 53 : Use Virtual Environments for Isolated and Reproducible Dependencies 

      Chapter 8 : Production 
      Item 54 : Consider Module-Scoped Code to Configure Deployment Environments  Item 55 : Use repr Strings for Debugging Output 
      Item 56 : Test Everything with unittest 
      Item 57 : Consider Interactive Debugging with pdb 
      Item 58 : Profile Before Optimizing
      Item 59 : Use tracemalloc to Understand Memory Usage and Leaks

    Contributors
    Authored By
    • Slatkin
    Ratings and Reviews
    4.4
    54 Ratings &
    11 Reviews
    • 5
       31
    • 4
       15
    • 3
       8
    • 2
       0
    • 1
       0
    5

    Short and concise, lots to learn from

    Even after 3 years of using Python for academic work and an year of professional work, topics in this book came as a surprise to me. This is a brilliant introduction to interesting and technical concepts of the Python language. Short and concise, it is an interesting and educational reading for any Python programmer.
    READ MORE

    poruri sai rahul

    Certified Buyer

    20 Jun, 2017

    10
    4
    Report Abuse
    5

    Worth every penny

    The book is great, with good quality pages, print and arrangement of chapters & items. Although I wouldn't recommend it for beginners, but it is a handy book to keep at your side. The book also potrays the subtle differences between python 2.x and 3.x , 59 topics on how to effectively change your programming style into that of a pro, this book will surely hone your skills. The size of the book makes it ideal to carry it on the go but no compromises have been made by the author in the quality ...
    READ MORE

    Aniket Das

    Certified Buyer

    2 Jan, 2018

    3
    3
    Report Abuse
    3

    Nice

    nice
    READ MORE

    KAZI MD. ARFIN

    Certified Buyer

    27 Oct, 2018

    0
    0
    Report Abuse
    5

    Worth every penny

    it isn't for newbie.You should know some knowledge of programming
    READ MORE

    Ravi Teja

    Certified Buyer

    15 Sep, 2018

    0
    0
    Report Abuse
    3

    Does the job

    not printed well
    READ MORE

    Kuldip Kumar

    Certified Buyer

    10 Sep, 2018

    0
    0
    Report Abuse
    5

    Must buy!

    good for improve your logic concept
    READ MORE

    Flipkart Customer

    Certified Buyer

    2 Aug, 2018

    0
    0
    Report Abuse
    5

    Great product

    5 years of experience and still I wasn't aware of most of things. mentioned in book. A good read. 😊
    READ MORE

    Ali Askar A

    Certified Buyer

    29 Jun, 2018

    1
    0
    Report Abuse
    4

    Wonderful

    It's worthable purchase
    READ MORE

    Darwin David

    Certified Buyer

    9 Nov, 2017

    0
    0
    Report Abuse
    5

    Simply awesome

    Nice Book
    READ MORE

    Chandan Kumar

    Certified Buyer

    21 Sep, 2017

    0
    0
    Report Abuse
    5

    Worth every penny

    Good book
    READ MORE

    jitendra barik

    Certified Buyer

    13 May, 2017

    0
    0
    Report Abuse
    +
    All 11 reviews
    Questions and Answers
    Q:i am a beginner .will be this book helpful?
    A:yes.
    AnonymousCertified Buyer
    1
    0
    Report Abuse
    Read other answers
    Didn't get the right answer you were looking for
    Safe and Secure Payments.Easy returns.100% Authentic products.
    Back to top