> Not with normal vars, because = is a rebinding operator in Python, > rather than assignment. > > You can do (close to) the above with object properties. > > David.
Yes, but it's done with built-in types like int and float. I suspect I could subclass from them and implement limits, but I would have to make seperate class for each type. Can I override conversion methods like int() and float() within my class? -- http://mail.python.org/mailman/listinfo/python-list