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.

classification
Title: IDLE [Open module]: import submodules
Type: Stage:
Components: IDLE Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: rhettinger, tzot
Priority: low Keywords: patch

Created on 2002-08-26 11:51 by tzot, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
EditorWindow.py.diff tzot, 2002-08-26 11:51 Diff -u output; load submodules in IDLE through [Open module] menu command
EditorWindow.py.diff tzot, 2002-08-26 12:28 diff -u
EditorWindow.py.diff_2 tzot, 2002-08-26 12:30 diff -u to EditorWindow.py; handle also the case of doing 'open.module' on eg. 'os.path'
Messages (5)
msg41030 - (view) Author: Χρήστος Γεωργίου (Christos Georgiou) (tzot) * Date: 2002-08-26 11:51
Since imp module's find_module can't find submodules, 
we can use the __import__ builtin to get the path to the 
submodule, and then call the imp.find_module function.
msg41031 - (view) Author: Χρήστος Γεωργίου (Christos Georgiou) (tzot) * Date: 2002-08-26 12:26
Logged In: YES 
user_id=539787

Added some code to handle correctly trying to open modules 
such as os.path
msg41032 - (view) Author: Χρήστος Γεωργίου (Christos Georgiou) (tzot) * Date: 2002-08-26 12:28
Logged In: YES 
user_id=539787

Added code to correctly handle the case of trying to open 
submodules like 'os.path'
msg41033 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2002-08-31 14:12
Logged In: YES 
user_id=80475

Looks good. Will apply when I get back from this weekend.
msg41034 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2002-09-08 03:43
Logged In: YES 
user_id=80475

Revised patch and committed as
EditorWindow.py 1.43.
Marking as fixed and closing patch.
History
Date User Action Args
2022-04-10 16:05:37adminsetgithub: 37090
2002-08-26 11:51:21tzotcreate