Re: why msvcrt.printf show the first char only?

2011-10-15 Thread Gabriel Genellina
On 12 oct, 08:50, Nobody wrote: > On Wed, 12 Oct 2011 04:18:25 -0700, install...@189.cn wrote: > > from ctypes import * > > msvcrt = cdll.msvcrt > > message_string = "Hello world!\n" > > print(msvcrt.printf("Testing: %s", message_string)) > > > when running in eclipse, the result is: > > 1 > > T >

Re: why msvcrt.printf show the first char only?

2011-10-12 Thread Nobody
On Wed, 12 Oct 2011 04:18:25 -0700, install...@189.cn wrote: > from ctypes import * > msvcrt = cdll.msvcrt > message_string = "Hello world!\n" > print(msvcrt.printf("Testing: %s", message_string)) > > when running in eclipse, the result is: > 1 > T > > when running in IDLE, then result is: > 1 >

why msvcrt.printf show the first char only?

2011-10-12 Thread install...@189.cn
from ctypes import * msvcrt = cdll.msvcrt message_string = "Hello world!\n" print(msvcrt.printf("Testing: %s", message_string)) when running in eclipse, the result is: 1 T when running in IDLE, then result is: 1 why is that? -- http://mail.python.org/mailman/listinfo/python-list