[issue20177] Derby #8: Convert 28 sites to Argument Clinic across 2 files

Nikolaus Rath report at bugs.python.org
Sat Jan 18 05:47:16 CET 2014


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 <report at bugs.python.org>
<http://bugs.python.org/issue20177>
_______________________________________


More information about the Python-bugs-list mailing list