Hello,
I am using typecheck 0.3.5
Python 2.5
Linux Ubuntu 8.10
I tried this example:
import typecheck
from typecheck import accepts
from typecheck.typeclasses import String, Number
@accepts(Number)
def f(a):
print a
if __name__ == "__main__":
f("error")
instead of getting a type exception the function is executed successfully.
Cheers
Tiago
Collin Winter
Utility classes
None
Public
|
Date: 2009-01-04 15:46 Hi, |