fileno() not supported in Python 3.1

satishmlmlml at gmail.com satishmlmlml at gmail.com
Thu Nov 13 18:48:32 EST 2014


import sys 
for stream in (sys.stdin, sys.stdout, sys.stderr): 
           print(stream.fileno()) 


io.UnsupportedOperation: fileno 

Is there a workaround?



More information about the Python-list mailing list