M
M.N.A.Smadi
does python support a C-like enum statement where one can define a
variable with prespesified range of values?
thanks
m.smadi
variable with prespesified range of values?
thanks
m.smadi
x=a()
x.value=11 error, x not in [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
x.value=8
M.N.A.Smadi said:does python support a C-like enum statement where one can define a
variable with prespesified range of values?
8M.N.A.Smadi said:does python support a C-like enum statement where one can define a
variable with prespesified range of values?
thanks
m.smadi
M.N.A.Smadi said:does python support a C-like enum statement where one can define a
variable with prespesified range of values?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.