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

Gabriel Genellina report at bugs.python.org
Sat Aug 29 23:44:40 CEST 2009


New submission from Gabriel Genellina <gagsl-py2 at 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 <report at bugs.python.org>
<http://bugs.python.org/issue6804>
_______________________________________


More information about the New-bugs-announce mailing list