[New-bugs-announce] [issue41294] Allow '__qualname__' to be an instance of 'DynamicClassAttribute'

William Pickard report at bugs.python.org
Mon Jul 13 19:30:12 EDT 2020


New submission from William Pickard <lollol222gg at gmail.com>:

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.

----------
messages: 373621
nosy: WildCard65
priority: normal
severity: normal
status: open
title: Allow '__qualname__' to be an instance of 'DynamicClassAttribute'
type: enhancement
versions: Python 3.10

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41294>
_______________________________________


More information about the New-bugs-announce mailing list