[docs] [issue16523] attrgetter and itemgetter signatures in docs need cleanup

Chris Jerdonek report at bugs.python.org
Fri Nov 23 18:58:20 CET 2012


Chris Jerdonek added the comment:

+.. function:: attrgetter(attr[, attr2, attr3, ...])

Why not reword to use the *attr notation?  It is even already being used below:

+   The function is equivalent to::
 
       def attrgetter(*items):
           if any(not isinstance(item, str) for item in items):

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16523>
_______________________________________


More information about the docs mailing list