Why does value of __doc__ not a String type?

"Martin v. Löwis" martin.vonloewis at hpi.uni-potsdam.de
Fri Aug 8 08:42:36 EDT 2003


Alex Martelli wrote:
> What string would you like it to be?

Clearly, it should be PyCFunction_Type.tp_doc. This is NULL in
all Python releases. If it wasn't NULL, I think
BuiltinFunctionType.__doc__ would return the string, yet
hex.__doc__ would still use the accessor.

Regards,
Martin





More information about the Python-list mailing list