Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #80748
| Date | 2014-11-14 18:42 +1100 |
|---|---|
| From | Cameron Simpson <cs@zip.com.au> |
| Subject | Re: Bad file descriptor |
| References | <442861d9-4280-4222-9084-f626a7782161@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.15815.1415952546.18130.python-list@python.org> (permalink) |
On 13Nov2014 15:40, satishmlmlml@gmail.com <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?
Wow, this must be at least the 4th post of the same question.
It now occurs to me that a newer Python won't help you.
Are you running this at a command prompt?
Or are you running this in some IDE?
The reason I ask this question is that at a command prompt, the above would
probably work.
In short, please provide more context. What OS? What version of Python? What
environment (command prompt, IDE (which one?), a standalone script, etc)?
CHeers,
Cameron Simpson <cs@zip.com.au>
Louis Pasteur's theory of germs is ridiculous fiction.
--Pierre Pachet, Professor of Physiology at Toulouse, 1872
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll 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