Thinking in Python

pjacotg 124 points 23 comments August 22, 2026
thinkinginpython.com · View on Hacker News

Discussion Highlights (11 comments)

enygmata

Where can I get a physical copy of this?

roelschroeven

"The book targets Python 3.15 and later" That's a bit weird, Python 3.15 isn't even fully released yet.

a2ff6eeb0

Since this is autogenerated, is it possible that it's going to be auto updated as new versions of python come out? That'd be pretty cool. It'd be interesting to see this kind of thing unfold itself into a book. When I feed it into an LLM, do you think it's going to improve the output of the code, or will it need additional prompting?

ra

I originally learned Java in 2000 from Bruce Eckel's "Thinking in Java"

Ozzie-D

The "Thinking in" series shaped how an entire generation learned to program. What made those books work wasn't the language coverage, it was that Eckel focused on mental models rather than syntax reference. You came away understanding how to think about the language, not just how to write it. Curious whether that approach translates well to Python, which arguably has a less opinionated object model than Java did.

bigcat12345678

I indeed find the formatting quality of the site to be superior. As mentioned below by the author. """ I know some people don’t like AI. Without it, this book wouldn’t exist. The book is free, so if AI bothers you more than the resulting product might benefit you, please ignore this book. Using Claude made me realize how many compromises I’ve made on books in the past. I would get a good idea about something (for example, automatically interleaving commented output in the listings). I either couldn’t implement it, or it seemed too hard, so I didn’t do it. But with AI I can explore and often implement every whim, from things as seemingly straightforward as inserting a new chapter to ones as daunting as that commented-output system. The result is much better than anything I managed before. I keep going until I’ve tweaked everything that occurs to me. """

jdw64

I think what people call 'AI slop' is probably just unedited content. I actually like this content quite a bit. Rather than whether it was made with AI, I think what matters is whether it accurately matches the specification

adellsworth

is there anything like this for clang?

pjacotg

I posted this link and found out about it on episide 121 of a podcast called Happy Path Programming, which Bruce Eckel hosts. I was aware that he had started and subsequently abandoned writing the book, so was excited to hear he had used Claude to clean up all of his old material for the book.

JLO64

While the web version of this book looks fine, I only read books on my Kindle (with KOReader). Thankfully all I had to do was clone the source repo ( https://github.com/BruceEckel/ThinkingInPython ) and run `make epub` to get a nicely formatted file! It is a bit on the larger side at 7.4MB, but beggars can't be choosers... (On second thought, I'm gonna submit a PR to shrink it as it's mostly from the cover image being 6MB!)

epgui

I would only wish that on my enemies... For god's sake, if you're going to think in a programming language, pick one with strict referential transparency.

Semantic search powered by Rivestack pgvector
4,128 stories · 37,281 chunks indexed