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
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
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
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
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
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