[issue24945] Expose Py_TPFLAGS_ values from Python

2019-12-20 Thread Batuhan
Batuhan added the comment: IMHO inspect would be a better place to put these constants (like CO_ flags). -- nosy: +BTaskaya versions: +Python 3.9 -Python 3.6 ___ Python tracker

[issue24945] Expose Py_TPFLAGS_ values from Python

2016-01-14 Thread SilentGhost
Changes by SilentGhost : -- nosy: +benjamin.peterson versions: +Python 3.6 ___ Python tracker ___

[issue24945] Expose Py_TPFLAGS_ values from Python

2015-08-27 Thread Erik Bray
New submission from Erik Bray: Although admittedly rare, I've on more than one occasion wanted to inspect the tp_flags of a given class. It seems silly to me that although tp_flags is exposed to Python via type.__flags__, I then have to go rummaging around in Include/object.h in order to

[issue24945] Expose Py_TPFLAGS_ values from Python

2015-08-27 Thread Erik Bray
Erik Bray added the comment: Alternatively (or additionally) it would be nice if type.__flags__ were some PyStructSequence-based type (though as a subtype of int for backwards compat). -- ___ Python tracker rep...@bugs.python.org