Author AlexWaygood
Recipients AlexWaygood, terry.reedy
Date 2021-10-12.19:36:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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?
Date User Action Args
2021-10-12 19:36:00AlexWaygoodsetrecipients: + AlexWaygood, terry.reedy
2021-10-12 19:36:00AlexWaygoodsetmessageid: <>
2021-10-12 19:36:00AlexWaygoodlinkissue45447 messages
2021-10-12 19:36:00AlexWaygoodcreate