Mastodon Feed: Post

Mastodon Feed

isagalaev ("Ivan Sagalaev :flag_wbw:") wrote:

By the way, my other go-to example of the same is the notoriously irresolvable choice between two ways of representing an absent value in a dict: `None` or not having a key in the dict. Which then multiplies into a way of checking for it: is it .get() or catching a KeyError?

#python