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
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/WVTCUFTEDCB6FMLABDH4KTJ443IUNTXT/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to