Message821
The behavior that I'm seeing is:
% jython
Jython 2.1+ on java1.3.1_02 (JIT: null)
Type "copyright", "credits" or "license" for more
information.
>>> import sys
>>> sys.stdout.close()
Traceback (innermost last):
(no code object) at line 0
ValueError: I/O operation on closed file
%
On the other hand, under CPython:
% python
Python 2.2 (#1, Feb 26 2002, 15:49:15)
[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-81)] on linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>> import sys
>>> sys.stdin.close()
>>>
I understand raising ValueError, but I can't seem to
even catch
the exception. |
|
Date |
User |
Action |
Args |
2008-02-20 17:17:14 | admin | link | issue695383 messages |
2008-02-20 17:17:14 | admin | create | |
|