A goto-like usage of a function

Scott David Daniels Scott.Daniels at Acm.Org
Thu Jul 29 20:27:12 EDT 2004


Bart Nessux wrote:
> Here's a function that I want to use to capture user input....

> def path_name():
>    ...
>    else:
>       print "\nTry again.\n"
>       path_name()
Besides the "pointless" recursion, this statement should be:
         return path_name()

-Scott David Daniels
Scott at Daniels@Acm.Org



More information about the Python-list mailing list