sys.exit()问题

sys.exit()问题

源程序如下
#!/usr/bin/python
# Filename: try_except.py

import sys

try:
    s = raw_input('Enter something --> ')
except EOFError:
    print '\nWhy did you do an EOF on me?'
    sys.exit() # exit the program
except:
    print '\nSome error/exception occurred.'
    # here, we are not exiting the program

print 'Done'

执行时按Ctrl+d,结果为
Enter something -->

Why did you do an EOF on me?

Traceback (most recent call last):
  File "D:/Python23/src/try_except.py", line 10, in -toplevel-
    sys.exit() # exit the program
SystemExit
而不是
$ python try_except.py
Enter something -->
Why did you do an EOF on me?

问题是会产生
Traceback (most recent call last):
  File "D:/Python23/src/try_except.py", line 10, in -toplevel-
    sys.exit() # exit the program
SystemExit

我在Window下试,没问题

D:\Program\Python>test.py
Enter something --> ^D
Done

D:\Program\Python>test.py
Enter something --> ^Z

Why did you do an EOF on me?

D:\Program\Python>
1楼是输入Ctlr+d?
^D -- Ctlr+d
^Z -- Ctlr+z

在win下Ctlr+z才是EOF
我的环境是winxp-sp2,python2.3.5
Ctrl-d会有问题,而Ctrl-z只显示Done
我是在pythonIDLE(python GUI)调式时出现的问题,在cmd下没问题,
搞不懂为什么
是不是解释器的BUG啊