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.

classification
Title: There ought to be a way for extension types to associate documentation with their tp_new or tp_init methods
Type: enhancement Stage: needs patch
Components: Interpreter Core Versions: Python 3.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: exarkun, ezio.melotti, larry, ncoghlan
Priority: normal Keywords:

Created on 2009-05-27 21:02 by exarkun, last changed 2022-04-11 14:56 by admin.

Messages (2)
msg88446 - (view) Author: Jean-Paul Calderone (exarkun) * (Python committer) Date: 2009-05-27 21:02
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.
msg112285 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2010-08-01 08:12
Can anyone provide a way forward for this issue?
History
Date User Action Args
2022-04-11 14:56:49adminsetgithub: 50380
2014-06-27 11:55:56ezio.melottisetnosy: + ncoghlan, larry, ezio.melotti
stage: needs patch
type: enhancement

versions: + Python 3.5
2014-02-03 19:51:35BreamoreBoysetnosy: - BreamoreBoy
2010-08-01 08:12:38BreamoreBoysetnosy: + BreamoreBoy
messages: + msg112285
2009-05-27 21:02:38exarkuncreate