Message176206
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, ...) |
|
Date |
User |
Action |
Args |
2012-11-23 18:27:48 | chris.jerdonek | set | recipients:
+ chris.jerdonek, ezio.melotti, r.david.murray, docs@python |
2012-11-23 18:27:47 | chris.jerdonek | set | messageid: <1353695267.99.0.915531096709.issue16523@psf.upfronthosting.co.za> |
2012-11-23 18:27:47 | chris.jerdonek | link | issue16523 messages |
2012-11-23 18:27:47 | chris.jerdonek | create | |
|