Shop Clove
Buy New
-10% $63.02
FREE delivery July 15 - 21
Ships from: Happy Trade Store
Sold by: Happy Trade Store
$63.02 with 10 percent savings
List Price: $69.99
FREE delivery July 15 - 21. Details
Or fastest delivery July 10 - 14. Details
Only 1 left in stock - order soon.
$$63.02 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$63.02
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Shipper / Seller
Returns
30-day refund/replacement
30-day refund/replacement
Quick refund
Usually issued within 24 hours. See exceptions
Shipping fee
May apply, not eligible for free return. See details
Convenient dropoff
At any of our 50,000 US locations.
See return policy
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
$73.25
FREE delivery Tuesday, July 14
Or Prime members get FREE delivery Friday, July 10. Order within 33 mins. Join Prime
Only 2 left in stock - order soon.
$$63.02 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$63.02
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Ships from
Amazon
Amazon
Ships from
Amazon
Returns
FREE 30-day refund/replacement
FREE 30-day refund/replacement
Quick refund
Usually issued within 24 hours. See exceptions
FREE return
At least one free return option available.
Convenient dropoff
At any of our 50,000 US locations.
See return policy
Gift options
Available at checkout
Available at checkout This item is a gift. Change
At checkout, you can add a custom message, a gift receipt for easy returns and have the item gift-wrapped
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
$14.15
Used book in very good condition. May have some minor wear. May NOT include discs, or access code or other supplemental material. Ships directly from Amazon and is eligible for Prime or super saver FREE shipping. We ship Monday-Saturday and respond to inquiries within 24 hours. Used book in very good condition. May have some minor wear. May NOT include discs, or access code or other supplemental material. Ships directly from Amazon and is eligible for Prime or super saver FREE shipping. We ship Monday-Saturday and respond to inquiries within 24 hours. See less
FREE delivery July 17 - 23. Details
Or fastest delivery Saturday, July 18. Details
In stock
$$63.02 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$63.02
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Access codes and supplements are not guaranteed with used items.
Ships from and sold by 2nd Life Books ✅.
Added to

Sorry, there was a problem.

There was an error retrieving your Wish Lists. Please try again.

Sorry, there was a problem.

List unavailable.
Kindle app logo image

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.

Read instantly on your browser with Kindle for Web.

Using your mobile phone camera - scan the code below and download the Kindle app.

QR code to download the Kindle App

  • Effective Python: 90 Specific Ways to Write Better Python (Effective Software Development Series)

Follow the author

Get new release updates & improved recommendations
Something went wrong. Please try your request again later.

Effective Python: 90 Specific Ways to Write Better Python (Effective Software Development Series)

4.7 out of 5 stars (442)

{"desktop_buybox_group_1":[{"displayPrice":"$63.02","priceAmount":63.02,"currencySymbol":"$","integerValue":"63","decimalSeparator":".","fractionalValue":"02","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"txp7Y4Rk9vB%2FdJ6cF2vUPz6m%2FibbX23XFaZ%2BoML9gUyoe9Et%2F4cSUPaUMFuBaSY%2B4S9UHaLDc%2Bmor8WKHZ%2BIQfHXS1Qy1gpWiCkO8nfZ92QcSKbAhk75Qr4A297QG1craTOeZiMOfOqolZEsPsU%2BAbQVCJa%2BueZt9c0u9YqMiqXpKe4oU2dHnJdj3LapCwkH","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$73.25","priceAmount":73.25,"currencySymbol":"$","integerValue":"73","decimalSeparator":".","fractionalValue":"25","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"txp7Y4Rk9vB%2FdJ6cF2vUPz6m%2FibbX23XFaZ%2BoML9gUyoe9Et%2F4cSUPaUMFuBaSY%2B4S9UHaLDc%2Bmor8WKHZ%2BIQcdJbh7ZNB8Df7dq6iWOBMOJROlPk8Bl5tm5g9SLu1PL19RdGbQ00ZoOyFQeA70cnJnMBujekuqd57G%2F7BMgnrFPSPkMc7oy6C9vahEJHKos","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":1}, {"displayPrice":"$14.15","priceAmount":14.15,"currencySymbol":"$","integerValue":"14","decimalSeparator":".","fractionalValue":"15","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"txp7Y4Rk9vB%2FdJ6cF2vUPz6m%2FibbX23XBixiSEw%2BIWl3vVUNUN6lB4bN60xUfbxColFwaQU1O%2F3yA7QxgM%2BSsw2oxpBTP8xkkRxtVp%2FCmAJ%2BL7BaulcRHMzUaB2KMoBHx043HhioXbsVtTqiUYy1Ao8jr8TjkDorcTFfM13dQKCu8Xu8h1u06Q6hnRTrQxIN","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":2}]}

Purchase options and add-ons

Updated and Expanded for Python 3

It’s easy to start developing programs with Python, which is why the language is so popular. However, Python’s unique strengths, charms, and expressiveness can be hard to grasp, and there are hidden pitfalls that can easily trip you up.
This second edition of
Effective Python will help you master a truly “Pythonic” approach to programming, harnessing Python’s full power to write exceptionally robust and well-performing code. Using the concise, scenario-driven style pioneered in Scott Meyers’ best-selling Effective C++, Brett Slatkin brings together 90 Python best practices, tips, and shortcuts, and explains them with realistic code examples so that you can embrace Python with confidence.
Drawing on years of experience building Python infrastructure at Google, Slatkin uncovers little-known quirks and idioms that powerfully impact code behavior and performance. You’ll understand the best way to accomplish key tasks so you can write code that’s easier to understand, maintain, and improve. In addition to even more advice, this new edition substantially revises all items from the first edition to reflect how best practices have evolved.
Key features include

  • 30 new actionable guidelines for all major areas of Python
  • Detailed explanations and examples of statements, expressions, and built-in types
  • Best practices for writing functions that clarify intention, promote reuse, and avoid bugs
  • Better techniques and idioms for using comprehensions and generator functions
  • Coverage of how to accurately express behaviors with classes and interfaces
  • Guidance on how to avoid pitfalls with metaclasses and dynamic attributes
  • More efficient and clear approaches to concurrency and parallelism
  • Solutions for optimizing and hardening to maximize performance and quality
  • Techniques and built-in modules that aid in debugging and testing
  • Tools and best practices for collaborative development

Effective Python will prepare growing programmers to make a big impact using Python.

Read poolside to seaside.Shop kindle Paperwhite. pantry

Frequently bought together

This item: Effective Python: 90 Specific Ways to Write Better Python (Effective Software Development Series)
$54.55
Get it Jul 27 - 30
Usually ships within 7 to 8 days
Ships from and sold by SuperBookDeals---.
+
$43.99
Get it as soon as Monday, Jul 13
In Stock
Ships from and sold by Amazon.com.
+
$23.96
Get it as soon as Monday, Jul 13
In Stock
Ships from and sold by Amazon.com.
Total price: $00
To see our price, add these items to your cart.
Details
Added to Cart
Some of these items ship sooner than the others.
Choose items to buy together.

Customers also bought or read

Loading...

From the Publisher

Woman reading book by the computer

Read this book if you want to write

Dancer in the air

exceptionally robust and well-performing code

Pocket watch

code that’s easier to understand, maintain, and improve

Perfect diamond

functions that clarify intention, promote reuse, and avoid bugs

Editorial Reviews

Review

“I have been recommending this book enthusiastically since the first edition appeared in 2015. This new edition, updated and expanded for Python 3, is a treasure trove of practical Python programming wisdom that can benefit programmers of all experience levels.”

–Wes McKinney, Creator of Python Pandas project, Director of Ursa Labs

“If you’re coming from another language, this is your definitive guide to taking full advantage of the unique features Python has to offer. I’ve been working with Python for nearly twenty years and I still learned a bunch of useful tricks, especially around newer features introduced by Python 3. Effective Python is crammed with actionable advice, and really helps define what our community means when they talk about Pythonic code.”

–Simon Willison, Co-creator of Django

“I’ve been programming in Python for years and thought I knew it pretty well. Thanks to this treasure trove of tips and techniques, I’ve discovered many ways to improve my Python code to make it faster (e.g., using bisect to search sorted lists), easier to read (e.g., enforcing keyword-only arguments), less prone to error (e.g., unpacking with starred expressions), and more Pythonic (e.g., using zip to iterate over lists in parallel). Plus, the second edition is a great way to quickly get up to speed on Python 3 features, such as the walrus operator, f-strings, and the typing module.”

–Pamela Fox, Creator of Khan Academy programming courses

“Now that Python 3 has finally become the standard version of Python, it’s already gone through eight minor releases and a lot of new features have been added throughout. Brett Slatkin returns with a second edition of Effective Python with a huge new list of Python idioms and straightforward recommendations, catching up with everything that’s introduced in version 3 all the way through 3.8 that we’ll all want to use as we finally leave Python 2 behind. Early sections lay out an enormous list of tips regarding new Python 3 syntaxes and concepts like string and byte objects, f-strings, assignment expressions (and their special nickname you might not know), and catch-all unpacking of tuples. Later sections take on bigger subjects, all of which are packed with things I either didn’t know or which I’m always trying to teach to others, including ‘Metaclasses and Attributes’ (good advice includes ‘Prefer Class Decorators over Metaclasses’ and also introduces a new magic method ‘__init_subclass__()’ I wasn’t familiar with), ‘Concurrency’ (favorite advice: ‘Use Threads for Blocking I/O, but not Parallelism,’ but it also covers asyncio and coroutines correctly) and ‘Robustness and Performance’ (advice given: ‘Profile before Optimizing’). It’s a joy to go through each section as everything I read is terrific best practice information smartly stated, and I’m considering quoting from this book in the future as it has such great advice all throughout. This is the definite winner for the ‘if you only read one Python book this year...’ contest.”

–Mike Bayer, Creator of SQLAlchemy

“This is a great book for both novice and experienced programmers. The code examples and explanations are well thought out and explained concisely and thoroughly. The second edition updates the advice for Python 3, and it’s fantastic! I’ve been using Python for almost 20 years, and I learned something new every few pages. The advice given in this book will serve anyone well.”

–Titus Brown, Associate Professor at UC Davis

“Once again, Brett Slatkin has managed to condense a wide range of solid practices from the community into a single volume. From exotic topics like metaclasses and concurrency to crucial basics like robustness, testing, and collaboration, the updated Effective Python makes a consensus view of what’s ‘Pythonic’ available to a wide audience.”

–Brandon Rhodes, Author of python-patterns.guide

About the Author

Brett Slatkin is a principal software engineer at Google. He is the technical co-founder of Google Surveys, the co-creator of the PubSubHubbub protocol, and he launched Google’s first cloud computing product (App Engine). Fourteen years ago, he cut his teeth using Python to manage Google’s enormous fleet of servers. Outside of his day job, he likes to play piano and surf (both poorly). He also enjoys writing about programming-related topics on his personal website (https://onebigfluke.com). He earned his B.S. in computer engineering from Columbia University in the City of New York. He lives in San Francisco.

Product details

  • Publisher ‏ : ‎ Addison-Wesley Professional
  • Publication date ‏ : ‎ November 15, 2019
  • Edition ‏ : ‎ 2nd
  • Language ‏ : ‎ English
  • Print length ‏ : ‎ 480 pages
  • ISBN-10 ‏ : ‎ 0134853989
  • ISBN-13 ‏ : ‎ 978-0134853987
  • Item Weight ‏ : ‎ 2.31 pounds
  • Dimensions ‏ : ‎ 7 x 0.9 x 9 inches
  • Part of series ‏ : ‎ Effective Software Development
  • Best Sellers Rank: #1,149,146 in Books (See Top 100 in Books)
  • Customer Reviews:
    4.7 out of 5 stars (442)

About the author

Follow authors to get new release updates, plus improved recommendations.
Brett Slatkin
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

Brett Slatkin is the author of the book Effective Python and has been writing Python code professionally for the past 20 years. He works as a principal software engineer in the Office of the CTO at Google developing technology strategies and rapid prototypes. His experience includes: founding Google Surveys, a platform for collecting machine learning and market research datasets; launching Google App Engine, the company's first cloud computing product; scaling Google's A/B experimentation products to billions of users; and co-creating PubSubHubbub, the W3C standard for real-time RSS feeds. He earned his B.S. in Computer Engineering from Columbia University in the City of New York.

Customer reviews

4.7 out of 5 stars
442 global ratings

Top reviews from the United States

  • 5 out of 5 stars
    Kept skills up to date
    Reviewed in the United States on March 14, 2025
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Great refresher

    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Best of all the python books I own.
    Reviewed in the United States on May 16, 2020
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    I own 8 python books as of right now. this is by far the best one in regards to writing "pythonic" code. most of the other books that I own focus on syntax, and how to write python code in the style that you would write in other languages. this book specifically shows you things specific to python. I would recommend one of the other books as a first, if you have never coded before, my favorite was python crash course, from no starch press.. but if you just want to learn python, and specifically how to be effective in python specific things, this is the book.

    31 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    great book
    Reviewed in the United States on February 12, 2021
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    I've been programming in C, C++, and Java since the mid 90's. In the last year my job has transitioned to more python work. Python wasn't hard to pick up, almost made me feel guilty programming, but I was programming in python like I would in C, C++. Looking at others code a lot of their design decisions didn't make sense.

    This book does a great job of explaining a lot of the python best practices.. and "quirks" of the language.

    15 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 4 out of 5 stars
    great content, but lousy layout and indentation
    Reviewed in the United States on July 27, 2021
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    I enjoyed book a lot, very inspiring and filled with insights.

    However, code in the book has wrong indentations which make

    it harder to read. I think publisher could use little polishing

    3 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Useful, even for experienced Pythonista!
    Reviewed in the United States on July 3, 2020
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    I've been writing Python code for years, and this was a great introduction to new Python features and practices that will improve my code significantly. Some of the examples appear contrived and are too long, but overall I'm very happy with this book.

    9 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Highly Recommend
    Reviewed in the United States on December 15, 2019
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Great resource on what can feel like an overwhelming topic.

    I’ve completed Automate The Boring Stuff and I’m about to finish an M.S. degree that included three python-related computer science courses. This book feels like about the right difficulty level for me. I would recommend it to anyone who has completed ATBS.

    12 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Short but clear
    Reviewed in the United States on February 11, 2022
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Each trick is short but explained very clear, no matter you are a beginner or advanced programmer.

    Also add new features of python 3.

    3 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Really well thought out, practical
    Reviewed in the United States on March 11, 2020
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    I bought this for our team, and we are enjoying reading through the items.

    The tips are quite practical and useful.

    I really like the Effective series of technical books. Very pragmatic and useful.

    Definitely ups my coding proficiency.

    6 people found this helpful
    Sending feedback...
    Thank you for your feedback.
    Sending feedback...
    Thanks, we'll investigate in the next few days.

Top reviews from other countries

    Translated by Amazon
    See original
  • 5 out of 5 stars
    The best book on Python I have ever bought!
    Reviewed in Canada on April 8, 2024
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    This is a book for people who already know Python fairly well and want to take it to a higher level of mastery. It is not intended to be read sequentially from cover to cover but rather kept nearby for quick insight on how to do things better. It is not one of those giant 10lb books that tries to be the ultimate Python 'Bible'. It is compact, well written and printed on high quality paper. Get the paper back version not the e-book, you will never part with it!

    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    Ideal book for experienced programmers who are new to Python
    Reviewed in the United Kingdom on March 10, 2020
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    I was looking for a book that would explain the idiosyncrasies and native idioms of Python without treating me like an idiot. I've only read a few chapters, but I can say that this is an extremely intelligent, practical and well-written book. It's also pretty comprehensive. It makes a constant point of demonstrating potential traps and interesting Python-specific tips for those who come with substantial experience of other programming languages. It doesn't explain the basics of the language, but if you have read the official online Python tutorial, that is enough to move on to this book.

    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    a must read
    Reviewed in France on March 15, 2022
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    full of Technic to apply in our daily work

    Sending feedback...
    Thanks, we'll investigate in the next few days.
  • 5 out of 5 stars
    python特有の文法を身につける
    Reviewed in Japan on May 6, 2021
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    この本を読むことで、Cライクな文法から脱却して、

    pythonicな文法が書けるようになります。

    MATLABの文法と似た部分もありますが、配列が

    値渡しでなく、参照渡しである点など、違う部分も多いので、

    python以外のスクリプト言語に慣れている人も一読する必要があるでしょう。

    Sending feedback...
    Thanks, we'll investigate in the next few days.
    Translated from Japanese by Amazon
    See original
  • 5 out of 5 stars
    Great
    Reviewed in South Africa on September 7, 2025
    Brief content visible, double tap to read full content.
    Full content visible, double tap to read brief content.

    Love this book

    Sending feedback...
    Thanks, we'll investigate in the next few days.