exiting a while loop
DL Neil
PythonList at DancesWithMice.info
Fri May 22 17:32:28 EDT 2020
On 23/05/20 4:31 AM, Grant Edwards wrote:
> On 2020-05-22, Peter Otten <__peter__ at web.de> wrote:
>
>> If you want to terminate the script you can use exit. However exit
>> is a function, and you have to call it
>>
>> exit()
>
> <pedantic>
>
> Actually it's an instance of _sitebuiltins.Quitter not a function.
>
> You still have to call it. ;)
>
> </pedantic>
Which definition (may) make it 'worse' (when compared with "break"):
doesn't exit() also close the application-window under some OpSys (if
not all) - which would 'disappear' the output before it could be read?
--
Regards =dn
More information about the Python-list
mailing list