stdin, stdout, redmon
Rolf van de Krol
python at rolfvandekrol.nl
Tue Jan 22 08:02:01 EST 2008
Well, that's at least weird. I did test my code with Python 2.5 on Win
XP, using the command prompt. But testing it with IDLE gives exactly the
same error Bernard has. So apparently STDIN can't be accessed with IDLE.
Rolf
John Machin wrote:
>
> Excuse me, gentlemen, may I be your referee *before* you resort to
> pistols at dawn?
>
> ===== IDLE =====
> IDLE 1.2.1
>
>>>> import sys
>>>> sys.stdin.readlines
>>>>
>
> Traceback (most recent call last):
> File "<pyshell#1>", line 1, in <module>
> sys.stdin.readlines
> AttributeError: readlines
>
>
> ===== Command Prompt =====
> C:\junk>python
> Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
> (Intel)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
>
>>>> import sys
>>>> sys.stdin.readlines
>>>>
> <built-in method readlines of file object at 0x00B1F020>
>
>
> HTH,
> John
>
More information about the Python-list
mailing list