This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author AlexWaygood
Recipients AlexWaygood, terry.reedy
Date 2021-10-12.19:36:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1634067360.09.0.49075370058.issue45447@roundup.psfhosted.org>
In-reply-to
Content
It looks like support for .py files is hardcoded into IDLE's source code in the following places:


* browser.ModuleBrowserTreeItem.OnDoubleClick
* browser.ModuleBrowserTreeItem.IsExpandable
* browser.ModuleBrowserTreeItem.listchildren
* editor.ispythonsource  << This is the one that controls syntax highlighting
* iomenu.IOBinding.filetypes


If I were to file a PR adding support for .pyi files, would you prefer that I hardcoded ".pyi" in, or would it be better to add a SUPPORTED_FILES constant somewhere?
History
Date User Action Args
2021-10-12 19:36:00AlexWaygoodsetrecipients: + AlexWaygood, terry.reedy
2021-10-12 19:36:00AlexWaygoodsetmessageid: <1634067360.09.0.49075370058.issue45447@roundup.psfhosted.org>
2021-10-12 19:36:00AlexWaygoodlinkissue45447 messages
2021-10-12 19:36:00AlexWaygoodcreate