[issue6804] IDLE: Detect Python files even if name doesn't end in .py

Terry J. Reedy report at bugs.python.org
Sat Aug 7 18:56:12 CEST 2010


Terry J. Reedy <tjreedy at udel.edu> added the comment:

I am a little puzzled by this issue.
1. Why would a Windows user use any extention other than .py or .pyw, which IDLE opens fine. How many people do something senseless like hand-registering, say 'xiq', as a python file?
2. .pyc files are binary files and NOT source code files and cannot be opened by IDLE as it will attempt to decode them into text. So why the check for that?

Also, I believe there is another issue to add a 'Treat this as Python code' entry to one of the menus. This would cover the case of files without extensions and files that are not python files but happen (on a case-by-case basis) to have python code embedded within.

So I am thinking that this should be closed.

----------
nosy: +terry.reedy
versions:  -Python 2.6, Python 2.7, Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6804>
_______________________________________


More information about the Python-bugs-list mailing list