6 ms·
You could implement an object that does it this way - it would basically implement __getitem__ and __getattr__ identically.
by int_19h 9y ago
You could implement an object that does it this way - it would basically implement __getitem__ and __getattr__ identically.