how to assert that method accepts specific types

andrew cooke andrew at acooke.org
Fri Feb 20 20:50:27 EST 2009


Darren Dale wrote:
> I would like to assert that a method accepts certain types. I have a
> short example that works:

just in case it's useful - are you aware that pep3107 (which looks like it
should be leet-speak for something) is implemented in python 3? 
http://www.python.org/dev/peps/pep-3107/

andrew




More information about the Python-list mailing list