printf in python

gianluca geonomica at gmail.com
Mon Jun 2 10:54:21 EDT 2008


On 2 Giu, 10:08, Hrvoje Niksic <hnik... at xemacs.org> wrote:
> gianluca <geonom... at gmail.com> writes:
> > Hy, I've a problem with may python library generated with swig from C
> > code. I works and I can access all function but a  simèple function
> > that print a string don't work's.
> > The function is like this:
> > int PrintTEST()
> > {
> >      printf("TEST ");
> >      return 1;
> > }
>
> Finish the printed string with a newline, or call fflush(stdout).  By
> default stdout is line-buffered when connected to interactive displays.

Exuse me!
How could use it?. I've tried with '\n'  without result.

Thanks

Gianluca



More information about the Python-list mailing list