E. Paine <paineeli...@gmail.com> added the comment:

I think this sounds like a very good idea. I would recommend using the 
`ispythonsource` method (in the editor class) as it already has all the logic 
you need while also checking for a start line like "#!/usr/bin/env python" 
(rather than relying solely on the extension).

----------
nosy: +epaine
title: IDLE: Option to warn user on "Run Module" if file is not .py/.pyw -> 
IDLE: Option to warn user on "Run Module" if file is not Python source

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41434>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to