classification
Title: Allow '__qualname__' to be an instance of 'DynamicClassAttribute'
Type: enhancement Stage:
Components: Versions: Python 3.10
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: WildCard65
Priority: normal Keywords:

Created on 2020-07-13 23:30 by WildCard65, last changed 2020-07-13 23:30 by WildCard65.

Messages (1)
msg373621 - (view) Author: William Pickard (WildCard65) * Date: 2020-07-13 23:30
Currently within Python, the attribute '__qualname__' is restricted to only be a string valued attribute.

This makes is rather cumbersome for anyone who wants to implement '__qualname__' as a property, instead of a plain attribute (especially if '__slots__' are used)

Python also has the type 'DynamicClassAttribute' who's only first party user is the 'enum' module, BUT it only supports shadow get requests.

Therefore, I'm requesting both changing DynamicClassAttribute to supoort __set__ and __del__ to function like __get__ AND to allow __qualname__ to be an instance of DynamicClassAttribute.
History
Date User Action Args
2020-07-13 23:30:12WildCard65create