IDLE file saving problem
MRAB
python at mrabarnett.plus.com
Fri Aug 21 17:10:49 EDT 2009
newb.py wrote:
> I am learning Python and need to use use IDLE, but I am having a
> problem. When I open a new window in IDLE and write my code, all is
> well. The coloring works and is very helpful. However, when I save the
> file I am working on, all the color disappears. And what is more
> frustrating is that when I open the saved file, it opens in TextEdit,
> so I have to copy it back into a new IDLE window to work on the code.
>
> If someone could clear up this seemingly simple problem for me, I
> would really appreciate it.
>
That happens if you don't provide the extension, eg you save as
"my_script" instead of "my_script.py". (Perhaps IDLE should add the
extension if the user doesn't.)
More information about the Python-list
mailing list