Using printf in a C Extension

Lonnie Princehouse finite.automaton at gmail.com
Fri Dec 9 13:51:00 EST 2005


printf will generally work in C extensions (although, as others have
said, it goes to STDOUT which is not necessarily the same as Python
sys.stdout)

Try explicitly flushing the buffer with fflush(stdout)




More information about the Python-list mailing list