Message249233
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 actually interpret the value of that attribute.
It would be nice, then, if the Py_TPFLAGS_* values were exposed as constants somewhere in Python (perhaps in the sys module)?
If it's agreed this is a good idea I'll gladly provide a patch if someone can point me toward where this would best live. |
|
Date |
User |
Action |
Args |
2015-08-27 13:50:54 | erik.bray | set | recipients:
+ erik.bray |
2015-08-27 13:50:54 | erik.bray | set | messageid: <1440683454.06.0.831934129277.issue24945@psf.upfronthosting.co.za> |
2015-08-27 13:50:54 | erik.bray | link | issue24945 messages |
2015-08-27 13:50:53 | erik.bray | create | |
|