io.UnsupportedOperation: fileno

2014-11-13 Thread satishmlmlml
import sys for stream in (sys.stdin, sys.stdout, sys.stderr): print(stream.fileno()) io.UnsupportedOperation: fileno -- https://mail.python.org/mailman/listinfo/python-list

Re: io.UnsupportedOperation: fileno

2014-11-13 Thread sohcahtoa82
On Thursday, November 13, 2014 3:23:24 PM UTC-8, satish...@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. -- htt

Re: io.UnsupportedOperation: fileno

2014-11-13 Thread satishmlmlml
What is the problem and how to overcome this problem? -- https://mail.python.org/mailman/listinfo/python-list

Re: io.UnsupportedOperation: fileno

2014-11-13 Thread Chris Angelico
On Fri, Nov 14, 2014 at 10:34 AM, wrote: > What is the problem and how to overcome this problem? The problem is that you're posting, with no context, a query relating to a former post which gave scanty information and no indication of what you expected. To overcome this, read this: http://www.c

Re: io.UnsupportedOperation: fileno

2014-11-13 Thread satishmlmlml
fileno() in not supported. Is it only in 3.1? What is the workaround? -- https://mail.python.org/mailman/listinfo/python-list

Re: io.UnsupportedOperation: fileno

2014-11-13 Thread Ben Finney
satishmlm...@gmail.com writes: > What is the problem and how to overcome this problem? First, please provide context (just as the previous respondent did), so your message may be understood in the absence of those prior. https://en.wikipedia.org/wiki/Posting_style#Interleaved_style> As to your q

Re: io.UnsupportedOperation: fileno

2014-11-13 Thread Ben Finney
satishmlm...@gmail.com writes: > fileno() in not supported. It is supported, but it is behaving as the documentation describes https://docs.python.org/3/library/io.html#io.IOBase.fileno>. > Is it only in 3.1? What is the workaround? Expect an exception when you ask for the file descriptor on a

Re: io.UnsupportedOperation: fileno

2014-11-13 Thread Mark Lawrence
On 13/11/2014 23:34, satishmlm...@gmail.com wrote: What is the problem and how to overcome this problem? RTFM. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: io.UnsupportedOperation: fileno

2014-11-13 Thread Cameron Simpson
On 14Nov2014 10:52, Ben Finney wrote: satishmlm...@gmail.com writes: fileno() in not supported. It is supported, but it is behaving as the documentation describes https://docs.python.org/3/library/io.html#io.IOBase.fileno>. Is it only in 3.1? What is the workaround? Expect an exception w

Re: io.UnsupportedOperation: fileno

2014-11-14 Thread Thomas Rachel
Am 14.11.2014 00:42 schrieb satishmlm...@gmail.com: fileno() in not supported. Is it only in 3.1? What is the workaround? You have been asked many times about the details of your environment. Especially, you have been told that it is important to know if you directly use the Python CLI or som