Assignement Overloading
Paul Prescod
paulp at ActiveState.com
Thu Jul 12 13:32:39 EDT 2001
Pierre Denis wrote:
>
> I am trying to emulate some kind of type checking in Python (sorry for the heresy). Because of the dynamic typing, my unpretentious
> goal is to intercept the assignment statement in order to perform a consistency check between the variable and the object to assign.
I'd suggest you look at for ideas or even a starting point:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/python/python/nondist/sandbox/typecheck/
--
Take a recipe. Leave a recipe.
Python Cookbook! http://www.ActiveState.com/pythoncookbook
More information about the Python-list
mailing list