Python : "print" doesn't work
Question: I've recently got a bug in my pokemon battling bot program i've been writing
for some time, which i cannot explain at all.

The code is too long to fit well in a stack overflow question, so here's the
entire code in a pastebin.

<http://pastebin.com/h4V2DnXh>

In short, the code connects to a websocket, receive and send data trough it,
and, for me to follow what's happening, print everything it receives. Plus,
several debug tools... well, in any case, it prints stuff. Or rather, it used
too. For some hours, nothing has been printed. A bug, would I think, the
program doesn't reach any line where a print order is issued. But it does !
Everything works, data is correctly sent and received, the data is not empty,
the bot does everything it's supposed to do. Thus, I added a

    
    
    print "test."
    

at the beginning... and nothing happens... it isn't even about printing empty
things, it doesn't print. At all.

By researching, i've found that print bugs could be linked to the usage of
IDLE , but i'm using enthought canopy (python 2.7), or that it could be linked
to imports, but the print "test." doesn't work, anyway.

Plus, it used to work, and I didn't modify the list of imported modules for a
while. And anyway, the modules do not have errors.

I really don't understand. Why won't print work ?


Answer: Are you using python 3.4? If you are try using brackets like this `print
("test.")`

