Python - call until I get a return value?
<p>I am calling a function to get the file a user selects in a simple gui.  I am trying to determine the proper way to continue prompting the user until they select a file.  Right now my call is:</p>

<pre><code>    file_path = None 
    while file_path is None:
        file_path = input_text_file()   # calls function to prompt user
</code></pre>

<p>Is there a better way to do this without initially setting file_path to None?  Is there a way to loop until a value is returned, or something along those lines?</p>
