New submission from Jean-Paul Calderone <exar...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue6130> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com