When running the following code (in Python 2.7.1 on a mac with Mac OS X 10.7)
while True: return False
I get the following error
As per the documentation on the return statement, return may only occur syntactically nested in a function definition. The same is true for yield.
return