Message3252

Author pjenvey
Recipients daishiharada, pjenvey
Date 2008-06-08.04:40:46
SpamBayes Score 0.0026711759
Marked as misclassified No
Message-id <1212900053.56.0.863335170873.issue695383@psf.upfronthosting.co.za>
In-reply-to
Content
trunk works like CPython now in this regard:

Jython 2.3a0+ (trunk:4553:4564M, Jun 7 2008, 21:19:17) 
[Java HotSpot(TM) Client VM (Apple Inc.)] on java1.5.0_13
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.stdout.close()
>>> print 'hi'
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: I/O operation on closed file
>>> print 'hi'
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: I/O operation on closed file
>>> try:
...     print 'hi'
... except ValueError:
...     print >> sys.stderr, 'hi'
... 
hi
>>> 

(and note the ValueError didn't occur until I tried printing something)
History
Date User Action Args
2008-06-08 04:40:53pjenveysetspambayes_score: 0.00267118 -> 0.0026711759
messageid: <1212900053.56.0.863335170873.issue695383@psf.upfronthosting.co.za>
2008-06-08 04:40:53pjenveysetspambayes_score: 0.00267118 -> 0.00267118
recipients: + pjenvey, daishiharada
2008-06-08 04:40:51pjenveylinkissue695383 messages
2008-06-08 04:40:48pjenveycreate