[issue3003] sys.stdin.fileno() gives attribute error in IDLE

2009-05-17 Thread Kurt B. Kaiser

Kurt B. Kaiser k...@shore.net added the comment:

 type(sys.stdin)
class 'idlelib.rpc.RPCProxy'

Don't attempt  sys.stdin._RPCProxy_methods lest you be turned to 
stone ;-)

We didn't implement all the features of stdin as it didn't seem 
necessary.  Did you have a specific reason to access 
stdin.fileno() ?

stdin/out/err support communications between the subprocess and 
the IDLE GUI through a socket.  They are redirected in the GUI and 
proxied in the subprocess.

--
assignee:  - kbk
nosy: +kbk
resolution:  - works for me
stage: test needed - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3003
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3003] sys.stdin.fileno() gives attribute error in IDLE

2009-04-26 Thread Daniel Diniz

Daniel Diniz aja...@gmail.com added the comment:

I think this isn't a bug, but an implementation detail. Guilherme?

--
nosy: +ajaksu2, gpolo
priority:  - normal
stage:  - test needed
type:  - behavior
versions: +Python 2.6 -Python 2.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3003
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3003] sys.stdin.fileno() gives attribute error in IDLE

2008-05-29 Thread Mark Veldhuis

New submission from Mark Veldhuis [EMAIL PROTECTED]:

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

--
components: IDLE
messages: 67503
nosy: mooz123
severity: normal
status: open
title: sys.stdin.fileno() gives attribute error in IDLE
versions: Python 2.5

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3003
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com