[issue16523] attrgetter and itemgetter signatures in docs need cleanup

2013-05-10 Thread Martijn Pieters
Martijn Pieters added the comment: The 2.7 patch shifted the `itemgetter()` signature to above the `attrgetter()` change and new notes. New patch to fix that in issue #17949: http://bugs.python.org/issue17949 -- nosy: +mjpieters ___ Python tracker

[issue16523] attrgetter and itemgetter signatures in docs need cleanup

2013-05-08 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the review! -- assignee: docs@python -> ezio.melotti resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker

[issue16523] attrgetter and itemgetter signatures in docs need cleanup

2013-05-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6f2412f12bfd by Ezio Melotti in branch '3.3': #16523: improve attrgetter/itemgetter/methodcaller documentation. http://hg.python.org/cpython/rev/6f2412f12bfd New changeset c2000ce25fe8 by Ezio Melotti in branch 'default': #16523: merge with 3.3. htt

[issue16523] attrgetter and itemgetter signatures in docs need cleanup

2013-05-01 Thread Zachary Ware
Zachary Ware added the comment: I left a couple of Rietveld comments. Other than those nitpicks it looks good to me, and I could be convinced otherwise on the nitpicks :) Also, thanks for catching the extra commas after the "After"s in operator.rst; I had meant to include those in the same pa

[issue16523] attrgetter and itemgetter signatures in docs need cleanup

2013-05-01 Thread Ezio Melotti
Ezio Melotti added the comment: Attached an updated patch that uses the double signature. -- stage: patch review -> commit review versions: -Python 3.2 Added file: http://bugs.python.org/file30093/issue16523-2.diff ___ Python tracker

[issue16523] attrgetter and itemgetter signatures in docs need cleanup

2012-11-23 Thread Chris Jerdonek
Chris Jerdonek added the comment: You can also make that distinction using *. For example: .. function:: attrgetter(attr, *attrs) or .. function:: attrgetter(attr) attrgetter(attr1, attr2, *attrs) (cf. http://docs.python.org/dev/library/functions.html#max ) Elsewhere we starte

[issue16523] attrgetter and itemgetter signatures in docs need cleanup

2012-11-23 Thread Ezio Melotti
Ezio Melotti added the comment: I thought about that, but wanted to make a distinction between the form that accepts only 1 arg and returns an item and the form that receives 2+ args and returns a tuple. -- nosy: +ezio.melotti ___ Python tracker

[issue16523] attrgetter and itemgetter signatures in docs need cleanup

2012-11-23 Thread Chris Jerdonek
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 ite

[issue16523] attrgetter and itemgetter signatures in docs need cleanup

2012-11-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +patch nosy: +chris.jerdonek stage: needs patch -> patch review versions: +Python 3.2 Added file: http://bugs.python.org/file28089/issue16523.diff ___ Python tracker _

[issue16523] attrgetter and itemgetter signatures in docs need cleanup

2012-11-21 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16523] attrgetter and itemgetter signatures in docs need cleanup

2012-11-21 Thread R. David Murray
New submission from R. David Murray: It looks like the use of the 'args' formal parameter was cut and pasted from the methodcaller docs, when it is not appropriate for itemgetter and attrgetter. http://docs.python.org/3/library/operator.html#operator.attrgetter -- assignee: docs@p