Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #80746
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!87.79.20.101.MISMATCH!newsreader4.netcologne.de!news.netcologne.de!bcyclone04.am1.xlned.com!bcyclone04.am1.xlned.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <cameron@cskk.homeip.net> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.004 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'supported,': 0.09; '>that': 0.16; 'descriptor': 0.16; 'descriptor.': 0.16; 'finney': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'received:211.29': 0.16; 'received:211.29.132': 0.16; 'received:cskk.homeip.net': 0.16; 'received:homeip.net': 0.16; 'received:optusnet.com.au': 0.16; 'received:syd.optusnet.com.au': 0.16; 'simpson': 0.16; 'stderr': 0.16; 'stdout': 0.16; 'supported.': 0.16; 'workaround?': 0.16; 'exception': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'cheers,': 0.24; 'header:In-Reply-To:1': 0.27; 'behaving': 0.31; 'really,': 0.31; 'writes:': 0.31; 'file': 0.32; 'url:python': 0.33; 'but': 0.35; 'received:com.au': 0.36; 'charset:us-ascii': 0.36; 'url:org': 0.36; 'ben': 0.38; 'received:211': 0.38; 'url:library': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'eventually': 0.60; 'url:3': 0.61; 'content- disposition:inline': 0.62; 'email addr:gmail.com': 0.63; 'commercial': 0.71; 'describes': 0.84 |
| Date | Fri, 14 Nov 2014 18:39:22 +1100 |
| From | Cameron Simpson <cs@zip.com.au> |
| To | python-list@python.org |
| Subject | Re: io.UnsupportedOperation: fileno |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii; format=flowed |
| Content-Disposition | inline |
| In-Reply-To | <85mw7u4q1g.fsf@benfinney.id.au> |
| User-Agent | Mutt/1.5.23 (2014-03-12) |
| References | <85mw7u4q1g.fsf@benfinney.id.au> |
| X-Optus-CM-Score | 0 |
| X-Optus-CM-Analysis | v=2.1 cv=fvDlOjIf c=1 sm=1 tr=0 a=YuQlxtEQCowy2cfE5kc7TA==:117 a=YuQlxtEQCowy2cfE5kc7TA==:17 a=ZtCCktOnAAAA:8 a=PO7r1zJSAAAA:8 a=J0QyKEt1u0cA:10 a=kj9zAlcOel0A:10 a=vrnE16BAAAAA:8 a=pGLkceISAAAA:8 a=8AHkEIZyAAAA:8 a=AQ6h9FICKJV5ZZ1iragA:9 a=CjuIK1q_8ugA:10 a=XDVQQWv3cIUA:10 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.15813.1415950766.18130.python-list@python.org> (permalink) |
| Lines | 20 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1415950766 news.xs4all.nl 2859 [2001:888:2000:d::a6]:54322 |
| X-Complaints-To | abuse@xs4all.nl |
| X-Received-Bytes | 3758 |
| X-Received-Body-CRC | 3988227258 |
| Xref | csiph.com comp.lang.python:80746 |
Show key headers only | View raw
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: io.UnsupportedOperation: fileno Cameron Simpson <cs@zip.com.au> - 2014-11-14 18:39 +1100
csiph-web