Message4690

Author markacy
Recipients markacy
Date 2009-05-17.08:43:00
SpamBayes Score 1.2667444e-06
Marked as misclassified No
Message-id <1242549781.41.0.930754383008.issue1350@psf.upfronthosting.co.za>
In-reply-to
Content
In python 2.5.4: 

Python 2.5.4 (r254:67916, Apr 24 2009, 09:21:35) 
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> type(sys.stdin.fileno())
<type 'int'>
>>> type(sys.stdout.fileno())
<type 'int'>
>>> type(sys.stderr.fileno())
<type 'int'>
>>> print sys.stdin.fileno()
0
>>> print sys.stdout.fileno()
1
>>> print sys.stderr.fileno()
2

In Jython trunk:
Jython 2.5rc2+ (trunk:6353M, maj 17 2009, 10:37:03) 
[Java HotSpot(TM) 64-Bit Server VM (Sun Microsystems Inc.)] on 
java1.6.0_13
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> type(sys.stdin.fileno())
<type 'org.python.core.io.StreamIO'>
>>> type(sys.stdout.fileno())
<type 'org.python.core.io.StreamIO'>
>>> type(sys.stderr.fileno())
<type 'org.python.core.io.StreamIO'>
>>> print sys.stdin.fileno()
org.python.core.io.StreamIO@68fc8e75
>>> print sys.stdout.fileno()
org.python.core.io.StreamIO@7afccada
>>> print sys.stderr.fileno()
org.python.core.io.StreamIO@f8600d6
History
Date User Action Args
2009-05-17 08:43:01markacysetrecipients: + markacy
2009-05-17 08:43:01markacysetmessageid: <1242549781.41.0.930754383008.issue1350@psf.upfronthosting.co.za>
2009-05-17 08:43:01markacylinkissue1350 messages
2009-05-17 08:43:00markacycreate