python3: 'where' keyword

André andre.roberge at gmail.com
Sat Jan 8 11:14:31 EST 2005


Darn space-eater google groups :-(   Here is it again, at teh risk of
generating controversy

.def gcd(a, b):
.    where:
.        a: int, b: int
.    return c where:
.        c: int
.    while a:
.        a, b = b%a, a
.    return b
more examples can be found at aroberge.blogspot.com

André




More information about the Python-list mailing list