[docs] [issue15831] comma after leading optional argument is after bracket in docs

Chris Jerdonek report at bugs.python.org
Sun Sep 2 15:42:18 CEST 2012

Chris Jerdonek added the comment:

Something to be aware of that may or may not affect the patch I'm preparing:

One reason that Sphinx seems able to render some of the more complicated function signatures is that it has logic to bail and print the parameter list verbatim from the reST file whenever its record-keeping logic becomes internally inconsistent:

except IndexError:
    # if there are too few or too many elements on the stack, just give up
    # and treat the whole argument list as one argument, discarding the
    # already partially populated paramlist node


This seems to come into play, for example, when rendering--

sorted(iterable[, key][, reverse])



Python tracker <report at bugs.python.org>

More information about the docs mailing list