Hacker News new | ask | show | jobs
by masklinn 1056 days ago
That's not entirely true, because `breakpoint` is a more general hook, `pdb.set_trace` is just its default behaviour.

This is, if anything, better. Because that way you can e.g. replace stray `breakpoint()` calls by warnings rather than break production :D