DeepRead
Cover of Effective Python

Effective Python

Brett Slatkin · 2015

Programming and computer science › Python

#1,251 most recommended

About the book

Effective Python is a guide to writing idiomatic Python, organized as numbered items that each name a specific practice, show a short code example, and explain the reasoning behind it. Its scope covers core syntax, functions, classes and interfaces, built-in and standard library modules, concurrency, testing, debugging, and performance, and it is aimed at programmers who already know the language's basics. Its central claim is that Python has its own idioms, so code written in the style of another language tends to be harder to read and more error-prone than code that uses comprehensions, unpacking, enumerate, context managers, and similar features. It also warns against the opposite mistake, since advanced features such as metaclasses or clever tricks can create maintenance costs, so clarity and simplicity should take priority over maximal use of the language. Throughout, it holds that the built-in tools and standard library usually beat hand-rolled solutions, and that testing, debugging, and attention to pitfalls such as mutable default arguments and concurrency hazards are part of writing good Python.

Written by Claude from what it knows of this book.

What Hacker News says 67% recommend · 0% critical

0102020122015202020262021 peak · 13
This bookAverage book in Python

In the commenters’ own words

  • It depends what you used to do with Python, really. There are a lot of users whose code didn't change from 2.x to 3.x except for the print "statements". I…

    Jugurtha · 2021 · in Ask HN: Catching Up with Python – Resources?

  • I'm with you that there can be an illusion of fluency, but I don't think that casts any doubt on the value of the article. Most people will read it and say…

    chubot · 2020 · in Gears

What Open Library readers say 4.20 from 5 ratings

  1. 52
  2. 42
  3. 31
  4. 20
  5. 10
  • 28 want to read
  • 1 reading
  • 7 have read

Only 5 ratings: treat the average as a hint.

Open Library’s page for the book

What critics say, via Wikipedia

No Wikipedia article about this book yet, so no critics to quote.

Reddit communities — coming later

The threads it came up in

Details

First published
2015
ISBN
9780138172183
Editions known
16 at Open Library
Open Library
OL17192267W

Computer programmingProgramación de computadorasProgrammeringProgramming LanguagesPython (Computer program language)Python (Lenguaje de programación para computadora)Python (programspråk)

Explore in the mosaic

Read next: its neighbours on the mosaic