how to assert that method accepts specific types

andrew cooke andrew at acooke.org
Sat Feb 21 02:50:27 CET 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