Author erik.bray
Recipients erik.bray
Date 2015-08-27.13:50:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1440683454.06.0.831934129277.issue24945@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-08-27 13:50:54erik.braysetrecipients: + erik.bray
2015-08-27 13:50:54erik.braysetmessageid: <1440683454.06.0.831934129277.issue24945@psf.upfronthosting.co.za>
2015-08-27 13:50:54erik.braylinkissue24945 messages
2015-08-27 13:50:53erik.braycreate