Re: stderr, stdout, and errno 24

2006-07-15 Thread Lawrence D'Oliveiro
In article <[EMAIL PROTECTED]>, "Wesley Henwood" <[EMAIL PROTECTED]> wrote: >I've checked and double checked my code and I am closing all files >explicitly after opening them. If you're running your program under Linux, a very easy way to confirm this is to look in the directory /proc//fd

Re: stderr, stdout, and errno 24

2006-07-13 Thread alisonken1
Wesley Henwood wrote: > I've checked and double checked my code and I am closing all files > explicitly after opening them. The only possibliy I can think of is > Python opening files each time I run a script, or each time imput to > stderr or stdout is redirected. > The problem >I think< is th

Re: stderr, stdout, and errno 24

2006-07-13 Thread Wesley Henwood
I've checked and double checked my code and I am closing all files explicitly after opening them. The only possibliy I can think of is Python opening files each time I run a script, or each time imput to stderr or stdout is redirected. Here's a link that is perhaps related to my problem:

Re: stderr, stdout, and errno 24

2006-07-12 Thread Jim Segrave
In article <[EMAIL PROTECTED]>, Wesley Henwood <[EMAIL PROTECTED]> wrote: >To capture output from python scripts run from a C++ app I've added the >following code at the beggening of the C++ app: > >PyRun_SimpleString("import grabber"); >PyRun_SimpleString("import sys"); >PyRun_SimpleString("class

Re: stderr, stdout, and errno 24

2006-07-12 Thread Dave Hansen
On 12 Jul 2006 18:09:42 -0700 in comp.lang.python, "Wesley Henwood" <[EMAIL PROTECTED]> wrote: >To capture output from python scripts run from a C++ app I've added the >following code at the beggening of the C++ app: > >PyRun_SimpleString("import grabber"); >PyRun_SimpleString("import sys"); >PyRu