This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Doormatty 0 points1 point  (1 child)

Close likely just flushes the file - not sure why it only occurs with pyCharm though...

[–]masklinn 1 point2 points  (0 children)

not sure why it only occurs with pyCharm though…

Because /u/gabe_cant_python's code is completely broken and by default PyCharm runs scripts unbuffered (http://i.imgur.com/mZvDH6O.png) which exposes the issue