Issue 3003: sys.stdin.fileno() gives attribute error in IDLE (original) (raw)
I am using IDLE on Ubuntu Hardy (8.04) and all in all very content to use it. Today I got an AttributeError using sys.stdin.fileno(). A closer look revealed this:
in IDLE:
Python 2.5.2 (r252:60911, Apr 21 2008, 11:12:42) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type "copyright", "credits" or "license()" for more information.
****************************************************************
Personal firewall software may warn about the connection IDLE
makes to its subprocess using this computer's internal loopback
interface. This connection is not visible on any external
interface and no data is sent to or received from the Internet.
****************************************************************
IDLE 1.2.2
import sys dir(sys.stdin) ['_RPCProxy__attributes', '_RPCProxy__getattributes', '_RPCProxy__getmethods', '_RPCProxy__methods', 'class', 'delattr', 'dict', 'doc', 'getattr', 'getattribute', 'hash', 'init', 'module', 'new', 'reduce', 'reduce_ex', 'repr', 'setattr', 'str', 'weakref', 'encoding', 'oid', 'sockio']
in terminal:
:~$ python Python 2.5.2 (r252:60911, Apr 21 2008, 11:12:42) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import sys dir(sys.stdin) ['class', 'delattr', 'doc', 'enter', 'exit', 'getattribute', 'hash', 'init', 'iter', 'new', 'reduce', 'reduce_ex', 'repr', 'setattr', 'str', 'close', 'closed', 'encoding', 'fileno', 'flush', 'isatty', 'mode', 'name', 'newlines', 'next', 'read', 'readinto', 'readline', 'readlines', 'seek', 'softspace', 'tell', 'truncate', 'write', 'writelines', 'xreadlines']
I expected to see more or less the same output, is that right? I could not find information on this online, so I report it as a bug.
greetings, Mark