Message4690
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 |
|
Date |
User |
Action |
Args |
2009-05-17 08:43:01 | markacy | set | recipients:
+ markacy |
2009-05-17 08:43:01 | markacy | set | messageid: <1242549781.41.0.930754383008.issue1350@psf.upfronthosting.co.za> |
2009-05-17 08:43:01 | markacy | link | issue1350 messages |
2009-05-17 08:43:00 | markacy | create | |
|