python / python/cpython

IDLE: Support all python files - task issue

Open
#95,410 2 comments 0 reactions 1 assignee View on GitHub

@terryjreedy is already working on this.

Since Jul 29, 2022.

topic-IDLE triaged type-feature
Dominant language
Python
Stars
77.2k
Forks
36k
PR merge metrics
PR metrics pending

Description

Besides '.py', files with '.pyw' (Windows), '.pyi' (typing stub files), and no extension (especially *nix) may be Python files. Before #89610, IDLE was generallly restricted to '.py' and '.pyw' (mostly).

  • Support open, highlight, and save for .pyi stub files.
    #89610
  • Support browsing .pyw files and anything similar added in the future.
    #95411
  • Support browsing .pyi files. Would this be useful?
  • Support browsing no-extension files. Check current code.
  • Support 'Open Module' for non-.py files. (Extra issue here is different extensions with same name.)

Interaction with OS

  • Support double click of .pyi on macOS to edit in IDLE.
    #95393
  • Support double click of any Python file on Windows to edit in IDLE. Currently, one may run with python or edit with Notepad or 'open' with another apps either listed or found by browsing. (Likely difficult.)
  • Support right click on .pyi on Windows to Edit with IDLE. See Zoomba's response on #89610 (difficult).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.