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 ppperry
Recipients Vadim Pushtaev, ncoghlan, ppperry, serhiy.storchaka
Date 2018-08-04.16:25:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1533399938.09.0.56676864532.issue34284@psf.upfronthosting.co.za>
In-reply-to
Content
The problem doesn't just happen with `sys.flags`, though. It happens with all types that can't be created directly by python. Ex: frame objects, generators, cells, etc. The bug is that in types whose c-level tp_new is null, the python-level __new__ is inherited from the superclass (and since object defines a `__new__`, such a function always exists), instead of being defined to always raise an error, like calling the type directly does.
History
Date User Action Args
2018-08-04 16:25:38ppperrysetrecipients: + ppperry, ncoghlan, serhiy.storchaka, Vadim Pushtaev
2018-08-04 16:25:38ppperrysetmessageid: <1533399938.09.0.56676864532.issue34284@psf.upfronthosting.co.za>
2018-08-04 16:25:38ppperrylinkissue34284 messages
2018-08-04 16:25:38ppperrycreate