Salut,



Un truc comme:

>>> def rec(n):
... n = n if n >= 10 else 10
... while True:
... yield n