Constants and Enums

David Goodger dgoodger at bigfoot.com
Thu Jun 29 22:47:07 EDT 2000


See the thread 'Tricks to do "enums"?' starting 2000-05-07, in which I
suggested:

    (VAL1,
     VAL2,
     VAL3) = range(3)

There were several other good suggestions too.

-- 
David Goodger    dgoodger at bigfoot.com    Open-source projects:
 - The Go Tools Project: http://gotools.sourceforge.net
 (more to come!)




More information about the Python-list mailing list