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

2020-06-07 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
versions: +Python 3.10 -Python 3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-10-02 Thread Terry J. Reedy

Terry J. Reedy added the comment:

#6858 was the issue I referred to.
Recognizing #!...python, common on *nex, which the patch does not do, seems 
sensible.  I thought about coding line, but general idea is not specific to 
python.

--
stage:  - patch review
versions: +Python 2.7, Python 3.4, Python 3.5 -Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6804
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2012-07-22 Thread Daniel Swanson

Daniel Swanson popcorn.tomato.d...@gmail.com added the comment:

No. When I try to open the file a small window entitled Specify file encoding 
pops up that says 
The file's encoding is invalid in Python 3.x.
Idle will convert it to UTF-8.
What is the current encoding of the file?
followed by an entry widget that has cp1252 and ok and cancel buttons. 
When I click ok the computer go dunnn and a error window titled Decoding 
Error that says File C:\Python32\misc\bee.jpg Failed to Decode with an ok 
button which, when clicked, closes idle (the edit window, not the shell). Does 
that answer your question?

--

___
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



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

2012-07-16 Thread Daniel Swanson

Daniel Swanson popcorn.tomato.d...@gmail.com added the comment:

I am also somewhat puzzled by this issue.
The other day I was able to open some .txt files just to see if I could and 
they opened just fine.
Just now I tryed to open a .jpg file and I got an error message, but then 
again, why would someone save a python file as a jpeg image?

--
nosy: +weirdink13

___
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



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

2012-07-16 Thread Roger Serwy

Roger Serwy roger.se...@gmail.com added the comment:

Is the error message a traceback? If so, could you open a separate issue for it?

--

___
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



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

2012-07-15 Thread Roger Serwy

Roger Serwy roger.se...@gmail.com added the comment:

This is related to issue6858. I assume that the point of this issue is to 
enable syntax highlighting by relying on the Windows registry?

--
nosy: +serwy

___
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



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

2010-08-07 Thread Terry J. Reedy

Terry J. Reedy tjre...@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 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



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

2009-11-14 Thread Gabriel Genellina

Changes by Gabriel Genellina gagsl-...@yahoo.com.ar:


Removed 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



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

2009-11-14 Thread Gabriel Genellina

Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:

This new patch addresses the previous comments.

--
Added file: http://bugs.python.org/file15334/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



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

2009-09-08 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

This makes sense, but the code should:
- not make the query when the extension is empty
- catch the WindowsError raised when the extension is not in the registry.

--
nosy: +amaury.forgeotdarc

___
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



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

2009-08-29 Thread Gabriel Genellina

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