> Non posso convertire il tipo di una variabile che passo ad una funzione?

Potresti fare cosi':

def func( a, b):

    if not any(c.isalpha() for c in a) and not any(c.isalpha() for c in b):

       a = int(a)
       b = int(b)

      # do something with integers
      ...

Carlos
-- 
EZLN ... Para Todos Todo ... Nada para nosotros
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a