
June 26, 2021
12:37 a.m.
On Fri, Jun 25, 2021 at 12:48:51PM -0700, Guido van Rossum wrote:
I agree, it is a backwards incompatible change. Also __slots__ won't work. The class has class attributes that can be modified in instances.
Oh, I see. There are two class attributes, sslsocket_class and sslobject_class, and their docs say they can be overridden per instance. Could we perhaps create a custom descriptor that allows both per-instance and per-class assignment and lookup?
Something like this, perhaps? https://code.activestate.com/recipes/577030-dualmethod-descriptor/ -- Steve