From ray.subhasis at gmail.com Mon Aug 27 05:35:16 2012 From: ray.subhasis at gmail.com (Subhasis Ray) Date: Mon, 27 Aug 2012 09:05:16 +0530 Subject: [capi-sig] How to assign docstring for built-in methods? Message-ID: Hi, I am trying to figure out if I can pass a custom docstring for builtin methods like tp_init of my C extension class. I tried method tables, but that does not work for these special methods. Python puts some documentation automatically which I want to override with the correct parameter descriptions etc: __init__(...) x.__init__(...) initializes x; see help(type(x)) for signature I tried asking this in more generic forums, but got no authoritative answer. Thanks, Subha