Re: [Python-Dev] Builtin exit, good in interpreter, bad in code.

2006-04-25 Thread Sean Reifschneider
On Mon, Apr 24, 2006 at 08:31:19AM +0200, "Martin v. L?wis" wrote: >Sean Reifschneider wrote: >> Thoughts? > >In Python 2.5, exit(0) exits. Eeexcellent. Thanks, Sean -- UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. -- Do

Re: [Python-Dev] Builtin exit, good in interpreter, bad in code.

2006-04-24 Thread Crutcher Dunnavant
On 4/23/06, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Sean Reifschneider wrote: > > Thoughts? > > In Python 2.5, exit(0) exits. +1 > > Regards, > Martin > ___ > Python-Dev mailing list > Python-Dev@python.org > http://mail.python.org/mailman/listin

Re: [Python-Dev] Builtin exit, good in interpreter, bad in code.

2006-04-23 Thread Nick Coghlan
Sean Reifschneider wrote: > Thoughts? As Martin pointed out, this was fixed for 2.5a1: C:\>type demo.bat @c:\python%1\python -c "exit()" @echo %ERRORLEVEL% C:\>demo 24 Traceback (most recent call last): File "", line 1, in ? TypeError: 'str' object is not callable 1 C:\>demo 25 0 Cheers, Ni

Re: [Python-Dev] Builtin exit, good in interpreter, bad in code.

2006-04-23 Thread Martin v. Löwis
Sean Reifschneider wrote: > Thoughts? In Python 2.5, exit(0) exits. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/arch

Re: [Python-Dev] Builtin exit, good in interpreter, bad in code.

2006-04-23 Thread Crutcher Dunnavant
On 4/23/06, Sean Reifschneider <[EMAIL PROTECTED]> wrote: > A friend of mine is learning Python, and had a problem with the exit > builtin. I like that in the interpreter it gives useful information, but > he was writing a program in a file and tried "exit(0)", and was presented > with the non-obv

[Python-Dev] Builtin exit, good in interpreter, bad in code.

2006-04-23 Thread Sean Reifschneider
A friend of mine is learning Python, and had a problem with the exit builtin. I like that in the interpreter it gives useful information, but he was writing a program in a file and tried "exit(0)", and was presented with the non-obvious error: TypeError: 'str' object is not callable What abou