io.UnsupportedOperation: fileno
Cameron Simpson
cs at zip.com.au
Fri Nov 14 02:39:22 EST 2014
On 14Nov2014 10:52, Ben Finney <ben+python at benfinney.id.au> wrote:
>satishmlmlml at gmail.com writes:
>
>> fileno() in not supported.
>
>It is supported, but it is behaving as the documentation describes
><URL: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 stream
>that does not use a file descriptor.
However, in 3.4.2 it does work (well, on MacOSX). Just as well really, as
stdin, stdout and stderr do eventually connect to file descriptors...
Cheers,
Cameron Simpson <cs at zip.com.au>
You wouldn't... ...but you KNOW you could. - Original V65 Commercial
More information about the Python-list
mailing list