This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author chris.jerdonek
Recipients chris.jerdonek, docs@python, ezio.melotti, r.david.murray
Date 2012-11-23.18:27:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1353695267.99.0.915531096709.issue16523@psf.upfronthosting.co.za>
In-reply-to
Content
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 started to prefer using two signature lines where two or more "behaviors" are possible, which might be good to do in any case.  With the "..." notation, this would look like:

.. function:: attrgetter(attr)
              attrgetter(attr1, attr2, ...)
History
Date User Action Args
2012-11-23 18:27:48chris.jerdoneksetrecipients: + chris.jerdonek, ezio.melotti, r.david.murray, docs@python
2012-11-23 18:27:47chris.jerdoneksetmessageid: <1353695267.99.0.915531096709.issue16523@psf.upfronthosting.co.za>
2012-11-23 18:27:47chris.jerdoneklinkissue16523 messages
2012-11-23 18:27:47chris.jerdonekcreate