2 ms·
Of course, sometimes I still type: D.get(key, None) since I forget that dict.get and getattr() have different behavior in the case of missing keys/attribute
by bpeebles 12y ago
Of course, sometimes I still type:
D.get(key, None)
since I forget that dict.get and getattr() have different behavior in the case of missing keys/attributes...