[New-bugs-announce] [issue6130] There ought to be a way for extension types to associate documentation with their tp_new or tp_init methods
Jean-Paul Calderone
report at bugs.python.org
Wed May 27 23:02:39 CEST 2009
New submission from Jean-Paul Calderone <exarkun at divmod.com>:
If an extension type supplies a tp_new or tp_init, these will be invoked
by the normal instantiation logic. They will also be exposed as
`__new__´ and `__init__´ attributes of the type. However, there is no
way to supply a docstring for these methods. Instead, these methods get
a hard coded docstring defined in typeobject.c.
----------
components: Interpreter Core
messages: 88446
nosy: exarkun
severity: normal
status: open
title: There ought to be a way for extension types to associate documentation with their tp_new or tp_init methods
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6130>
_______________________________________
More information about the New-bugs-announce
mailing list