3 ms·
Yes, that is the problem, imagine you might write a cache and use None to represent the value not being present in the cache - but then your cache silently fail
by fhars 3y ago
Yes, that is the problem, imagine you might write a cache and use None to represent the value not being present in the cache - but then your cache silently fails to cache if the thing you were caching returns None
- bombolo 3y agoAs I already wrote in a different comment, KeyError and None aren't the same.