Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:Help': 0.11; 'jan': 0.12; 'descriptor': 0.16; 'descriptors': 0.16; 'function?': 0.16; 'ignoring': 0.16; 'manuals.': 0.16; 'number?': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject:threads': 0.16; 'subject:too': 0.16; 'supported.': 0.16; 'sys.stdout': 0.16; 'troll': 0.16; 'workaround?': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'read,': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply- To:1': 0.27; 'file': 0.32; 'another': 0.32; 'advice': 0.35; 'starting': 0.37; 'subject:new': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'called': 0.40; 'how': 0.40; 'read': 0.60; 'email addr:gmail.com': 0.63; 'different': 0.65; 'study': 0.69; 'received:fios.verizon.net': 0.84; 'study,': 0.84; 'symptoms': 0.84; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: A new Help Vampire? (was Re: (too many threads) Date: Fri, 14 Nov 2014 00:20:59 -0500 References: <9ee719ac-21cb-43db-a9ae-e13fd41f4a65@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-108-16-203-145.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: <9ee719ac-21cb-43db-a9ae-e13fd41f4a65@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1415942485 news.xs4all.nl 2876 [2001:888:2000:d::a6]:35244 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:80741 On 11/13/2014 7:51 PM, satishmlmlml@gmail.com wrote: in 4 different threads > How to get file descriptors of sys.stdin, sys.stdout and sys.stderr? > fileno() in not supported. Is it only in 3.1? What is the workaround? > io.UnsupportedOperation: fileno > How to give a file descriptor number to this function? How to get a file descriptor number? Satish, you are acting like the variety of troll called a Help Vampire. One of the symptoms is hogging the newsgroup by starting multiple threads a day, often on the same topic. Another is ignoring the advice to read and study the manuals. Another is ignoring advice to read, study, and follow advice on how to ask good questions. Please desist. -- Terry Jan Reedy