logoalt Hacker News

pansa2yesterday at 12:13 PM1 replyview on HN

If valid `data` can be zero, an empty string, or anything else “falsy”, then your version won’t handle those values correctly. It treats them the same as `None`, i.e. not found.


Replies

japhyryesterday at 12:34 PM

:facepalm: