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: ihooks module cannot handle absolute imports
Type: behavior Stage:
Components: Versions: Python 2.7, Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: nas, nascheme
Priority: normal Keywords:

Created on 2008-10-20 17:36 by nas, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
ihooks_relative.txt nas, 2009-05-31 23:09
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) * (Python committer) Date: 2009-10-14 19:26
Fixed in SVN rev 75423.
History
Date User Action Args
2022-04-11 14:56:40adminsetgithub: 48402
2009-10-14 19:26:54naschemesetstatus: open -> closed

nosy: + nascheme
messages: + msg94019

resolution: fixed
2009-05-31 23:09:08nassetfiles: + ihooks_relative.txt

messages: + msg88618
versions: + Python 2.7
2008-10-20 17:36:41nascreate