python2.5 x python2.6 in interactive mode
Alan
alanwilter at gmail.com
Mon Jun 7 07:43:11 EDT 2010
Hi there,
I have a code with a 'exit()' at the end. We run it usually as:
python2.5 -i code.py
and if everything is fine, the 'exit()' is called and there's no interactive
terminal.
However, doing the same above with python2.6 and I got:
amadeus[2738]:~/TMP% python2.6 -i thread_ping.py
Traceback (most recent call last):
File "thread_ping.py", line 42, in <module>
exit()
File "/sw/lib/python2.6/site.py", line 334, in __call__
raise SystemExit(code)
SystemExit: None
>>>
So, everything is fine except that it ended up in the interactive python
terminal. Is there a way of having the very behaviour I have with python 2.5
for my code in python 2.6?
Many thanks in advance,
Alan
--
Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate
Department of Biochemistry, University of Cambridge.
80 Tennis Court Road, Cambridge CB2 1GA, UK.
>>http://www.bio.cam.ac.uk/~awd28<<
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100607/f66cfccd/attachment.html>
More information about the Python-list
mailing list