I currently use python 2.7 and i have a snippet of code that comes out different in two interpreters.
Edit: Would help to post my code ^^
Expand|Select|Wrap|Line Numbers
- from ctypes import *
- msvcrt = cdll.msvcrt
- message_string = "hello world!\n"
- msvcrt.printf("Testing ctypes printf: {0}".format(message_string))
- print ("Python Idle: {0}".format(message_string))
First one is python idle. Win7
>>>
Python Idle: hello world!
>>>
As we can see it completely skips the line with the ctype command.
Now the second interpreter is eclipse. And while using the exact same code I get this:
Python Idle: hello world!
Testing ctypes printf: hello world!
If we compare this to the code it writes the python idle line before it write ctype. But in the code ctype is written before the print command.
This make my head want to explode. I know some python but I really can't wrap my head around this. Please help out, virtual cookies in return! ^^ -o