fileno() not supported in Python 3.1

satishmlmlml at gmail.com satishmlmlml at gmail.com
Fri Nov 14 00:48:32 CET 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