[issue18055] Stop using imp in IDLE

2013-06-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset a0d8ae880ae6 by Brett Cannon in branch '3.3': Issue #18055: Move to importlib from imp for IDLE. http://hg.python.org/cpython/rev/a0d8ae880ae6 New changeset 3a3ec484ce95 by Brett Cannon in branch 'default': merge w/ 3.3 for issue #18055

[issue18055] Stop using imp in IDLE

2013-06-07 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the help everyone! -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18055

[issue18055] Stop using imp in IDLE

2013-05-27 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18055 ___ ___

[issue18055] Stop using imp in IDLE

2013-05-25 Thread Brett Cannon
New submission from Brett Cannon: As part of issue #14797 I'm trying to remove all uses of imp.find_module/load_module since the API is so bad in the face of importers. See the attached patch to replace the one use in IDLE. It should actually be more accepting of alternative importers than

[issue18055] Stop using imp in IDLE

2013-05-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +kbk, roger.serwy, terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18055 ___

[issue18055] Stop using imp in IDLE

2013-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: (Roger, please see Bretts opening message.) Brett, thanks for asking. We prefer to keep active codebases in sync as much as possible. Since new import stuff is not in 2.7, we will have to skip that. In EditorWindow.py, the patch deletes the _find_module

[issue18055] Stop using imp in IDLE

2013-05-25 Thread Brett Cannon
Brett Cannon added the comment: If you would prefer to keep using imp in IDLE to make management across versions easier I'm fine with that, just understand my goal is to deprecate imp in Python 3.4 (but won't remove it until Python 4 so people can write Python 2/3 compatible code, much like

[issue18055] Stop using imp in IDLE

2013-05-25 Thread Roger Serwy
Roger Serwy added the comment: @Brett, I agree that IDLE should not be using deprecated modules. I don't know all the ins and outs of the import machinery of Python, so I'll defer to your expertise in that area. :-) @Terry, I have never used this IDLE feature before, so I don't know all it's

[issue18055] Stop using imp in IDLE

2013-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Brett, you misunderstood somethings. I want to apply now to 3.3 and 3.4. This is the right time now that 3.2 final maintenance is out. (In any case, we are no longer patching it. 2.7 gets improvements on a 'reasonable best effort' basis.) It is also clearer

[issue18055] Stop using imp in IDLE

2013-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Roger, sorry, I did not read your message completely. When I open from the console intepreter, I also get the traceback; same behavior. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18055