Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #80746 > unrolled thread

Re: io.UnsupportedOperation: fileno

Started byCameron Simpson <cs@zip.com.au>
First post2014-11-14 18:39 +1100
Last post2014-11-14 18:39 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: io.UnsupportedOperation: fileno Cameron Simpson <cs@zip.com.au> - 2014-11-14 18:39 +1100

#80746 — Re: io.UnsupportedOperation: fileno

FromCameron Simpson <cs@zip.com.au>
Date2014-11-14 18:39 +1100
SubjectRe: io.UnsupportedOperation: fileno
Message-ID<mailman.15813.1415950766.18130.python-list@python.org>
On 14Nov2014 10:52, Ben Finney <ben+python@benfinney.id.au> wrote:
>satishmlmlml@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@zip.com.au>

You wouldn't... ...but you KNOW you could.      - Original V65 Commercial

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web