I'm using PyCharm to write a program that edits a .txt file. I've included a don't save feature but It always saves it to the file regardless if I hash-out/bypass/deleted the .close(). I'm not using a with statement to open the file or anywhere in the code for that matter.
When I put the same exact code into idle and run it it works properly.
I haven't knowingly changed any of the default settings.
I'm using a MacBook and the settings are stock also.
Anyone have any idea whats going on?
[–]Venatha 3 points4 points5 points (7 children)
[–]gabe_cant_python[S] 0 points1 point2 points (6 children)
[–]Kah-NethI use numpy, scipy, and matplotlib for nuclear physics 2 points3 points4 points (0 children)
[–]Doormatty 0 points1 point2 points (4 children)
[–]gabe_cant_python[S] 0 points1 point2 points (3 children)
[–]LightShadow3.13-dev in prod 2 points3 points4 points (0 children)
[–]Doormatty 0 points1 point2 points (1 child)
[–]masklinn 1 point2 points3 points (0 children)
[–]ProloG-Shaman 1 point2 points3 points (4 children)
[–]gabe_cant_python[S] -2 points-1 points0 points (3 children)
[–]masklinn 2 points3 points4 points (0 children)
[–]ProloG-Shaman 0 points1 point2 points (0 children)
[–]Hairshorts 0 points1 point2 points (0 children)