[Patches] [ python-Patches-600152 ] IDLE [Open module]: import submodules

noreply@sourceforge.net noreply@sourceforge.net
Sat, 07 Sep 2002 20:43:41 -0700


Patches item #600152, was opened at 2002-08-26 06:51
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=600152&group_id=5470

Category: IDLE
Group: Python 2.3
>Status: Closed
>Resolution: Fixed
Priority: 3
Submitted By: Christos Georgiou (tzot)
Assigned to: Raymond Hettinger (rhettinger)
Summary: IDLE [Open module]: import submodules

Initial Comment:
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.

----------------------------------------------------------------------

>Comment By: Raymond Hettinger (rhettinger)
Date: 2002-09-07 22:43

Message:
Logged In: YES 
user_id=80475

Revised patch and committed as
EditorWindow.py 1.43.
Marking as fixed and closing patch.

----------------------------------------------------------------------

Comment By: Raymond Hettinger (rhettinger)
Date: 2002-08-31 09:12

Message:
Logged In: YES 
user_id=80475

Looks good. Will apply when I get back from this weekend.

----------------------------------------------------------------------

Comment By: Christos Georgiou (tzot)
Date: 2002-08-26 07:28

Message:
Logged In: YES 
user_id=539787

Added code to correctly handle the case of trying to open 
submodules like 'os.path'

----------------------------------------------------------------------

Comment By: Christos Georgiou (tzot)
Date: 2002-08-26 07:26

Message:
Logged In: YES 
user_id=539787

Added some code to handle correctly trying to open modules 
such as os.path

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=600152&group_id=5470