Message323113
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. |
|
Date |
User |
Action |
Args |
2018-08-04 16:25:38 | ppperry | set | recipients:
+ ppperry, ncoghlan, serhiy.storchaka, Vadim Pushtaev |
2018-08-04 16:25:38 | ppperry | set | messageid: <1533399938.09.0.56676864532.issue34284@psf.upfronthosting.co.za> |
2018-08-04 16:25:38 | ppperry | link | issue34284 messages |
2018-08-04 16:25:38 | ppperry | create | |
|