[docs] [issue8626] TypeError: rsplit() takes no keyword arguments
Antoine Pitrou
report at bugs.python.org
Wed May 5 22:21:54 CEST 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
This is more of a documentation issue than anything else. The fact that the argument is named "maxsplit" and accepts a default value doesn't mean it's usable as a keyword argument. It would be difficult to document a parameter without giving it a name anyway...
As a rule of thumb, methods accepting 2 parameters or less often don't accept any keyword arguments, since there's no point in doing so.
I suggest closing this issue.
----------
assignee: -> docs at python
components: +Documentation
nosy: +docs at python, pitrou
stage: unit test needed ->
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8626>
_______________________________________
More information about the docs
mailing list