Issue 4152: ihooks module cannot handle absolute imports (original ) (raw ) Issue4152
Created on 2008-10-20 17:36 by nas , last changed 2022-04-11 14:56 by admin . This issue is now closed .
Messages (3)
msg74998 - (view)
Author: Neil Schemenauer (nas)
Date: 2008-10-20 17:36
The ihooks module was updated when the absolute imports feature was implemented. At a minimum, I guess the import_module() methods in that module would need to have "level=-1" keyword arguments added. The only library in the core that uses an absolute import is encodings/__init__.py.
msg88618 - (view)
Author: Neil Schemenauer (nas)
Date: 2009-05-31 23:09
Adding a patch that adds support for relative imports based on the import.c code. I've tested it by hacking the test_import.py test module.
msg94019 - (view)
Author: Neil Schemenauer (nascheme) *
Date: 2009-10-14 19:26
Fixed in SVN rev 75423 .
History
Date
User
Action
Args
2022-04-11 14:56:40
admin
set
github: 48402
2009-10-14 19:26:54
nascheme
set
status: open -> closednosy: + nascheme messages: + resolution: fixed
2009-05-31 23:09:08
nas
set
files: + ihooks_relative.txt messages: + versions: + Python 2.7
2008-10-20 17:36:41
nas
create