A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-April/064247.html below:

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

[Python-Dev] Builtin exit, good in interpreter, bad in code.Nick Coghlan ncoghlan at gmail.com
Mon Apr 24 08:51:14 CEST 2006
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 "<string>", line 1, in ?
TypeError: 'str' object is not callable
1

C:\>demo 25
0

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4