3 ms·
Not a full equivalence, but this[0] gets you x.foo, x.bar ergonomics as opposed to x['foo'] etc. [0] https://docs.python.org/3/library/types.html#types.SimpleN
by thanatropism 8y ago
Not a full equivalence, but this[0] gets you x.foo, x.bar ergonomics as opposed to x['foo'] etc.
[0] https://docs.python.org/3/library/types.html#types.SimpleNamespace https://docs.python.org/3/library/types.html#types.SimpleNam...