Re: stdout/err and C extentions

2007-06-12 Thread hg
Robert Bauck Hamar wrote: > hg wrote: > >> Robert Bauck Hamar wrote: >> >>> hg wrote: >>> Hi, I have the following * C extention - redir.c #include "Python.h" PyObject * test_redir_test(PyObject *self) { fprintf(

Re: stdout/err and C extentions

2007-06-12 Thread Robert Bauck Hamar
hg wrote: > Robert Bauck Hamar wrote: > >> hg wrote: >> >>> Hi, >>> >>> I have the following >>> >>> * C extention - redir.c >>> >>> >>> #include "Python.h" >>> >>> PyObject * test_redir_test(PyObject *self) { >>> fprintf(stdout, "Hello from an extention!\n"); >>> P

Re: stdout/err and C extentions

2007-06-12 Thread hg
Robert Bauck Hamar wrote: > hg wrote: > >> Hi, >> >> I have the following >> >> * C extention - redir.c >> >> >> #include "Python.h" >> >> PyObject * test_redir_test(PyObject *self) { >> fprintf(stdout, "Hello from an extention!\n"); >> Py_INCREF(Py_None); >> retur

Re: stdout/err and C extentions

2007-06-12 Thread Robert Bauck Hamar
hg wrote: > Hi, > > I have the following > > * C extention - redir.c > > > #include "Python.h" > > PyObject * test_redir_test(PyObject *self) { > fprintf(stdout, "Hello from an extention!\n"); > Py_INCREF(Py_None); > return Py_None; > } > [...] > **