enum question

Patrick Useldinger pu.news.001 at gmail.com
Sat Mar 5 10:14:59 EST 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?
> 
> thanks
> m.smadi

 >>> BLUE, RED, GREEN = 1,5,8
 >>> BLUE
1
 >>> RED
5
 >>> GREEN
8



More information about the Python-list mailing list