Message403755
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:00 | AlexWaygood | set | recipients:
+ AlexWaygood, terry.reedy |
2021-10-12 19:36:00 | AlexWaygood | set | messageid: <1634067360.09.0.49075370058.issue45447@roundup.psfhosted.org> |
2021-10-12 19:36:00 | AlexWaygood | link | issue45447 messages |
2021-10-12 19:36:00 | AlexWaygood | create | |
|