[docs] [issue23787] sum() function docstring lists arguments incorrectly
Valentine Sinitsyn
report at bugs.python.org
Fri Mar 27 17:02:47 CET 2015
Valentine Sinitsyn added the comment:
Yes, strings aren't an issue. I only used them as an example.
I came across this issue during code review, discussing if it is okay to pass generator expression to sum() (like sum(x*2 for x in xrange(5)) or is it better to convert it to the list first (sum([x*2 for x in xrange(5)])). Both variants work so docstring is sort of specification here.
Surely, it's not a high priority task anyways.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23787>
_______________________________________
More information about the docs
mailing list