> def iter_numeri():<br>> while True:<br>> numero = get_num()<br>> if numero.isdigit():<br>> yield numero<br>><br>> for ... in iter_numeri:<br>> ...etc.etc. <br><br>
<div class="gmail_extra"><br><br><div class="gmail_quote">On 6 November 2012 18:10, <a href="mailto:orsomannaro@gmail.com">orsomannaro@gmail.com</a> <span dir="ltr"><<a href="mailto:orsomannaro@gmail.com" target="_blank">orsomannaro@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
for ... :<br>
...<br>
numero = get_num(...)<br>
if not numero.isdigit(): continue<br>
my_obj.codice = numero<br>
...<br>
<br>
<br>
grazie<br>
______________________________<u></u>_________________<br>
Python mailing list<br>
<a href="mailto:Python@lists.python.it" target="_blank">Python@lists.python.it</a><br>
<a href="http://lists.python.it/mailman/listinfo/python" target="_blank">http://lists.python.it/<u></u>mailman/listinfo/python</a><br>
</blockquote></div><br></div>