From: SourceForge.net <no...@so...> - 2003-03-01 00:17:38
|
Bugs item #695383, was opened at 2003-03-01 00:27 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=695383&group_id=12867 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: daishi harada (daishiharada) Assigned to: Nobody/Anonymous (nobody) Summary: close()-ing sys.stdin/stdout causes Jython to exit Initial Comment: 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=695383&group_id=12867 |