exit()

nntpman68 news1234 at free.fr
Mon Sep 8 23:30:42 CEST 2008


Hi Jean-Paul,

Jean-Paul Calderone wrote:
> On Mon, 08 Sep 2008 21:03:48 +0200, Christian Heimes <lists at cheimes.de> 
> wrote:
>> Gary Robinson wrote:
>>> In Python 2.5.2, I notice that, in the interpreter or in a script, I 
>>> can exit with:
>>>
>>>     exit()
>>
>> The exit callable is defined in the site module. Check out site.py! It 
>> shouldn't be used in code. It was added to help newbies to 'escape' 
>> from an interactive Python shell.
>>
> 
> It works.  Why shouldn't it be used?
> 
> Jean-Paul

Backwards compatibility vs. saving 4 characters.


I'd stick with backwards compatibility

bye


N




More information about the Python-list mailing list