[Tutor] Enumeration and constant

Bob Gailer bgailer at alum.rpi.edu
Mon May 29 06:31:38 CEST 2006


Brendan Cheng wrote:
> I wander how to setup the enumeration type  and constant in Python, 
> which I couldn't find the topic in the help file.
There is no built-in enumeration type. See
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/67107
for an example of an enumeration class.

-- 
Bob Gailer
510-978-4454

Broadband Phone Service for local and long distance $19.95/mo plus 1 mo Free <http://click.linksynergy.com/fs-bin/click?id=NXXZaiArugE&offerid=86109.10000010&type=3&subid=0>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060528/1adc4783/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: show
Type: image/gif
Size: 43 bytes
Desc: not available
Url : http://mail.python.org/pipermail/tutor/attachments/20060528/1adc4783/attachment.gif 


More information about the Tutor mailing list