News for hackers. Stuff that matters.
Re:What's New in Python 3.12 by ddejohn on Wednesday October 18, 2023 @02:33PM (#37932751)
Right, see my other comment:

> Blowing up on `None` is an easy short-circuit.

The thing being discussed is attempting to access deeply nested values, so short-circuiting here is a win-win. I.e., you wouldn't want to unnecessarily traverse tons of empty dictionaries using the `.get() or {}` trick.

There are no comments on this comment yet.