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

    @gsuberland @foone this is the kind of thing I've done when I want a cache or sidecar object with the same lifetime and copy semantics.

    I've done munged __private, leading symbol, leading null, non-string, everything.

    💬 1🔄 0⭐ 1

Replies

  • Nov 24, 2026, 9:41 PM

    @gsuberland @foone (I've also got a weakref object identity dictionary I copy occasionally, which does something similar, but it forgets the extra data if the object gets copied.)

    💬 0🔄 0⭐ 1