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


Groups > comp.lang.python > #80740

Re: Bad file descriptor

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!bcyclone02.am1.xlned.com!bcyclone02.am1.xlned.com!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'subject:file': 0.07; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'suggest': 0.14; 'language.': 0.14; 'descriptor': 0.16; 'function?': 0.16; 'number?': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'language': 0.16; 'wrote:': 0.18; 'import': 0.22; 'header:User- Agent:1': 0.23; 'asking': 0.27; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'getting': 0.31; 'away.': 0.31; 'file': 0.32; 'advice': 0.35; 'to:addr:python-list': 0.38; 'bad': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'cheque': 0.60; 'simply': 0.61; 'email addr:gmail.com': 0.63; 'our': 0.64; 'charset:windows-1252': 0.65; 'desperately': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: Bad file descriptor
Date Fri, 14 Nov 2014 05:17:04 +0000
References <442861d9-4280-4222-9084-f626a7782161@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host host-92-18-40-92.as13285.net
User-Agent Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0
In-Reply-To <442861d9-4280-4222-9084-f626a7782161@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 <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.15807.1415942240.18130.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1415942240 news.xs4all.nl 2881 [2001:888:2000:d::a6]:60798
X-Complaints-To abuse@xs4all.nl
X-Received-Bytes 3237
X-Received-Body-CRC 585127581
Xref csiph.com comp.lang.python:80740

Show key headers only | View raw


On 13/11/2014 23:40, satishmlmlml@gmail.com wrote:
> import os
> os.write(1, b'Hello descriptor world\n')
> OSError: Bad file descriptor
>
> How to give a file descriptor number to this function? How to get a file descriptor number?
>

I suggest getting your cheque book out and paying for the advice you so 
desperately need.  Or follow the advice already given about asking smart 
questions.  Or RTFM.  Or simply go away.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bad file descriptor satishmlmlml@gmail.com - 2014-11-13 15:40 -0800
  Re: Bad file descriptor sohcahtoa82@gmail.com - 2014-11-13 15:43 -0800
  Re: Bad file descriptor Ben Finney <ben+python@benfinney.id.au> - 2014-11-14 10:56 +1100
    Re: Bad file descriptor Roy Smith <roy@panix.com> - 2014-11-13 19:41 -0500
  Re: Bad file descriptor Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-11-14 05:17 +0000
  Re: Bad file descriptor Cameron Simpson <cs@zip.com.au> - 2014-11-14 18:42 +1100

csiph-web