io.UnsupportedOperation: fileno

sohcahtoa82 at gmail.com sohcahtoa82 at gmail.com
Fri Nov 14 00:30:49 CET 2014


On Thursday, November 13, 2014 3:23:24 PM UTC-8, satish... at gmail.com wrote:
> import sys
> for stream in (sys.stdin, sys.stdout, sys.stderr):
>            print(stream.fileno())
> 
> 
> io.UnsupportedOperation: fileno

Yup.  That's what I'd expect to see.



More information about the Python-list mailing list