New submission from Gabriel Genellina <gagsl-...@yahoo.com.ar>: A Python source file name doesn't necesarily end in .py/.pyw; on Linux, scripts usually have no extension but are recognized by its shebang line. Windows uses file type associations: .py files are of type Python.File, and .pyc files are Python.NoConFile.
This patch makes IDLE recognize as a Python source (and colorize) any file of those types, regardless of extension. http://permalink.gmane.org/ gmane.comp.python.general/636011 ---------- components: IDLE files: EditorWindow.diff keywords: patch messages: 92071 nosy: gagenellina severity: normal status: open title: IDLE: Detect Python files even if name doesn't end in .py type: feature request versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2 Added file: http://bugs.python.org/file14803/EditorWindow.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6804> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com