A goto-like usage of a function

Scott David Daniels Scott.Daniels at Acm.Org
Fri Jul 30 02:27:12 CEST 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