enum question

Stephen Toledo-Brown Stephen_Toledo_Brown at domain_in_sig
Sat Mar 5 12:54:28 CET 2005


M.N.A.Smadi wrote:

> does python support a C-like enum statement where one can define a 
> variable with prespesified range of values?

Not built in, but there are various solutions available, some simpler 
than others. See the Infrequently Asked Questions: 
http://www.norvig.com/python-iaq.html

-- 
Steve Toledo-Brown
Speaking for myself only.
Humans please use domain uk.ibm.com



More information about the Python-list mailing list