2015-04-17 16:58 GMT+01:00 Enrico Bianchi <enrico.bian...@ymail.com>:

> Intendi i type hints? Perche`?
>

Vedi qualcosa che non va in questo codice?

In [4]: def add(x, y):
   ...:     if type(x) == int and type(y) == int:
   ...:         return x + y
   ...:     raise TypeError

-- 
.
..: -enrico-
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a