Old Angry Queer :transflag:old_angry_queer@girlcock.club
Nov 24, 2026, 10:02 PM@foone
>>> getattr(obj,'foo.bar')
'hi'
@foone
>>> getattr(obj,'foo.bar')
'hi'
@foone you could probably also override __getattr__ and __setattr__ for Object and make this work the way...someone that wanted dots in their object attributes, or maybe more reasonably expected to be able to just lazily create a dict called "foo" with a key called "bar"..wanted it to work.
@old_angry_queer @foone I have a vague recollection that something like this, so dot notation could be used on dicts in a class broke debugging on a project I worked on a few years ago. Something like that.
And we never fixed it.