attrs icon indicating copy to clipboard operation
attrs copied to clipboard

Possible class creation optimization

Open A5rocks opened this issue 1 year ago • 1 comments

Was looking at the CPython issue tracker and noticed https://github.com/python/cpython/issues/100930

It looks like attrs doesn't do this either. I don't know if this is wanted or whether this can work with linecache.

A5rocks avatar Jan 11 '23 02:01 A5rocks

It's a very specific optimization that only works for a narrow class of problems. I've been watching it (it originates in this forum thread) and I'm not sure the complexity is really worth it – hasn't any weird side-effects we aren't expecting, yet.

hynek avatar Jan 11 '23 08:01 hynek