> def iter_numeri(): > while True: > numero = get_num() > if numero.isdigit(): > yield numero > > for ... in iter_numeri: > ...etc.etc.
On 6 November 2012 18:10, orsomann...@gmail.com <orsomann...@gmail.com>wrote: > > for ... : > ... > numero = get_num(...) > if not numero.isdigit(): continue > my_obj.codice = numero > ... > > > grazie > ______________________________**_________________ > Python mailing list > Python@lists.python.it > http://lists.python.it/**mailman/listinfo/python<http://lists.python.it/mailman/listinfo/python> >
_______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python