Why do I get an "AttributeError : read" message when I do:
import sys
r=sys.stdin.rea d()
??
I've tried:
r=sys.stdin.rea d(80)
r=sys.stdin.rea d(1)
same error message.
I couldn't find any reference to this function in my Python book (they have
the stdout but not in).
Some sample code I saw uses this function in the same manner I am and so I
am assuming this is the correct syntax?
Or is this a bug in Python 2.4?
--
It's me
import sys
r=sys.stdin.rea d()
??
I've tried:
r=sys.stdin.rea d(80)
r=sys.stdin.rea d(1)
same error message.
I couldn't find any reference to this function in my Python book (they have
the stdout but not in).
Some sample code I saw uses this function in the same manner I am and so I
am assuming this is the correct syntax?
Or is this a bug in Python 2.4?
--
It's me
Comment