[Python-Dev] sys.exit(47) ?

M.-A. Lemburg mal at egenix.com
Wed Nov 17 21:41:16 CET 2004


Peter Astrand wrote:
> On Wed, 17 Nov 2004, M.-A. Lemburg wrote:
> 
> 
>>something in the regression suite is generating a temporary
>>file with content:
>>
>>#!/bin/sh
>>exec /path/to/python -c 'import sys; sys.exit(47)'
>>
>>and not cleaning up after itself.
>>
>>This started around Oct. 13. Looking at the regression suite
>>test_subprocess.py seems to be the cause.
> 
> 
> Thanks for pointing this out. Now fixed, in revision 1.15 of
> test_subprocess.py.

Thanks, I'll see whether my nightly build script will pick up the
change.

>>BTW, wouldn't sys.exit(42) be more appropriate :-?
> 
> 
> 42 is not as random :) See http://en.wikipedia.org/wiki/47_%28number%29

Interesting reference :-)

http://en.wikipedia.org/wiki/42_%28number%29

AFAIR, Tim Peters introduced that number to the Python universe.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Nov 17 2004)
 >>> Python/Zope Consulting and Support ...        http://www.egenix.com/
 >>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::


More information about the Python-Dev mailing list