[issue8626] TypeError: rsplit() takes no keyword arguments

Antoine Pitrou <pitrou@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@python components: +Documentation nosy: +docs@python, pitrou stage: unit test needed -> _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue8626> _______________________________________
participants (1)
-
Antoine Pitrou