Nikolaus Rath added the comment:

I have started working on this (partial patch attached), but I am unsure how to 
handle cases where the docstring definition utilizes a macro. For example:

PyDoc_STRVAR(strftime_doc,
"strftime(format[, tuple]) -> string\n\
\n\
Convert a time tuple to a string according to a format specification.\n\
See the library reference manual for formatting codes. When the time tuple\n\
is not present, current time as returned by localtime() is used.\n\
\n" STRFTIME_FORMAT_CODES);

I don't think STRFTIME_FORMAT_CODES will be expanded if I put it into the 
[clinic] comment section. 

Should I include the contents verbatim? Or do not convert these functions to 
argument clinic?

----------
keywords: +patch
nosy: +Nikratio
Added file: http://bugs.python.org/file33521/issue20177.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20177>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to