Roundup Robot added the comment:
New changeset 37786ae8cc1c by Antoine Pitrou in branch '3.4':
Issue #9307: document the various Py_TPFLAGS_*_SUBCLASS flags. Patch by Yury
V. Zaytsev.
http://hg.python.org/cpython/rev/37786ae8cc1c
New changeset d1a03834cec7 by Antoine Pitrou in branch
Antoine Pitrou added the comment:
This is committed, thank you.
--
resolution: - fixed
stage: needs patch - resolved
status: open - closed
versions: +Python 3.4 -Python 2.7, Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9307
___
___
Python-bugs-list
Yury V. Zaytsev added the comment:
Hi,
I agree with Alexander, I've been recently investigating a related problem and
I found the lack of documentation on the subject quite frustrating; I therefore
propose the attached patch to the docs.
Hope that helps,
--Yury.
--
keywords: +patch
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9307
___
___
Python-bugs-list
New submission from Alexander Belopolsky belopol...@users.sourceforge.net:
Is there a reason for not documenting Py_TPFLAGS_LONG_SUBCLASS
(Py_TPFLAGS_INT_SUBCLASS in 2.x)?
This flag is used in PyLong_Check, but neither this flag or its inheritance
properties are explained anywhere in the
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
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 (1L23)
#define Py_TPFLAGS_LONG_SUBCLASS(1L24)
#define
Antoine Pitrou pit...@free.fr added the comment:
It would probably be more useful to document them in the C API and put a
reference to that in the inspect module docs. These flags are primarily useful
for C extension developers, there's little point checking them from Python code.
--
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Mon, Jul 19, 2010 at 2:17 PM, Antoine Pitrou rep...@bugs.python.org wrote:
.. These flags are primarily useful for C extension developers, there's
little point checking them from Python code.
Of course there is: it