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 belopolsky
Recipients belopolsky, docs@python
Date 2010-07-19.18:07:55
SpamBayes Score 2.874602e-05
Marked as misclassified No
Message-id <1279562879.19.0.765360966702.issue9307@psf.upfronthosting.co.za>
In-reply-to
Content
Here are other similar flags that are not documented:


/* These flags are used to determine if a type is a subclass. */
#define Py_TPFLAGS_INT_SUBCLASS         (1L<<23)
#define Py_TPFLAGS_LONG_SUBCLASS        (1L<<24)
#define Py_TPFLAGS_LIST_SUBCLASS        (1L<<25)
#define Py_TPFLAGS_TUPLE_SUBCLASS       (1L<<26)
#define Py_TPFLAGS_BYTES_SUBCLASS       (1L<<27)
#define Py_TPFLAGS_UNICODE_SUBCLASS     (1L<<28)
#define Py_TPFLAGS_DICT_SUBCLASS        (1L<<29)
#define Py_TPFLAGS_BASE_EXC_SUBCLASS    (1L<<30)
#define Py_TPFLAGS_TYPE_SUBCLASS        (1L<<31)

On a similar note, TPFLAGS_IS_ABSTRACT is exposed in the inspect module, but is not documented in either inspect module documentation or C API documentation.

I believe that as long as these flags are available from the type objects as __flags__, all valid bits should be exposed in inspect module and properly documented.
History
Date User Action Args
2010-07-19 18:07:59belopolskysetrecipients: + belopolsky, docs@python
2010-07-19 18:07:59belopolskysetmessageid: <1279562879.19.0.765360966702.issue9307@psf.upfronthosting.co.za>
2010-07-19 18:07:56belopolskylinkissue9307 messages
2010-07-19 18:07:55belopolskycreate