Type Hinting vs Type Checking and Preconditions

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Tue Mar 7 16:44:28 EST 2006


You can look at this, its API looks very well thought out to me:
http://oakwinter.com/code/typecheck/

> Now, on the other hand, if we were to introduce a purely optional type
> hint to the function prototype, such as follows:
> def multiplyByTwo(value:int): return value * 2

I don't think Python will have something like this...

Bye,
bearophile




More information about the Python-list mailing list