3 ms·
yeah, trivial annoyances like AttributeError: 'NoneType' object has no attribute 'method' when you just don't expect it.
by baq 9y ago
yeah, trivial annoyances like
AttributeError: 'NoneType' object has no attribute 'method'
when you just don't expect it.
- deleted 9y ago[deleted]
- duggan 9y agoJust to clarify, I'm using trivial here in the technical sense. YMMV on what counts as trivial to you, of course, after three days straight tearing your hair out!
- ptx 9y agoRight - this trivial annoyance, the Python equivalent of a NullPointerException, is not actually prevented by the static type system in Java and some other popular static languages. (Kotlin does prevent it, though!)