ch value from an enumeration exports its sequence index
as an integer, and can be coerced to a simple string matching the
original arguments used to create the enumeration::
>>> str(pizza_night)
'fri'
>>> shirt_colour.index
2
"""
--
\ "It ain't so much the things we don't know that get us in |
`\ trouble. It's the things we know that ain't so." -- Artemus |
_o__) Ward (1834-67), U.S. journalist |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations.html
://trac.whitetree.org/gracie/>.
--
\ "When I turned two I was really anxious, because I'd doubled my |
`\ age in a year. I thought, if this keeps up, by the time I'm six |
_o__) I'll be ninety." -- Steven Wright |
Ben Finney <[EM
l the mistakes which can be |
`\ made in a very narrow field.” —Niels Bohr |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations/
t it was no match for me |
`\ at kick boxing.” —Emo Philips |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
ntil now).
* A document answering Frequently Asked Questions is now added.
--
\ “Any intelligent fool can make things bigger and more complex… |
`\It takes a touch of genius – and a lot of courage – to move in |
_o__)the opposite direction.” —Albert Einste
o__) |
Ben Finney
signature.asc
Description: PGP signature
--
https://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations/