This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients pablogsal, pfalcon, ppperry, terry.reedy, vstinner
Date 2020-01-16.21:44:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1579211066.63.0.584349219326.issue32615@roundup.psfhosted.org>
In-reply-to
Content
More detail about the implementation. Currently, namespaces are accessed directly with C functions which expect to get an exact dict type: these functions are designed for performance, not to handle dict subclasses, on purpose.

Supporting dict subclasses first require to check if the namespace type is dict: that's the first performance overhead. Then new code should be added to handle subclasses: that's the additional maintenance burden. This code path should be tested, maintained, reviewed, etc.

The risk is also to forget to support subclasses in one function which would break the feature. Same problem is new code is added which doesn't support dict subclasses.

This feature is far from being free to implement. It's very expensive on multiple aspects.
History
Date User Action Args
2020-01-16 21:44:26vstinnersetrecipients: + vstinner, terry.reedy, pfalcon, ppperry, pablogsal
2020-01-16 21:44:26vstinnersetmessageid: <1579211066.63.0.584349219326.issue32615@roundup.psfhosted.org>
2020-01-16 21:44:26vstinnerlinkissue32615 messages
2020-01-16 21:44:26vstinnercreate