Login
You're viewing the code4lib.social public feed.
  • Nov 24, 2026, 10:05 PM

    @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.

    💬 1🔄 0⭐ 0

Replies

  • Nov 24, 2026, 10:33 PM

    @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.

    💬 0🔄 0⭐ 0