[issue4244] ihooks incompatible with absolute_import feature

Jean-Paul Calderone report at bugs.python.org
Fri Oct 31 14:32:40 CET 2008


New submission from Jean-Paul Calderone <exarkun at divmod.com>:

The __import__ function ihooks installs has a signature which is
incompatible with the real __import__ function, breaking some things
when ihooks is in use:

exarkun at charm:~$ python2.5
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ihooks
>>> ihooks.install()
>>> from __future__ import absolute_import
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: import_module() takes at most 5 arguments (6 given)
>>>

----------
components: Interpreter Core, Library (Lib)
messages: 75414
nosy: exarkun
severity: normal
status: open
title: ihooks incompatible with absolute_import feature
type: behavior
versions: Python 2.5, Python 2.5.3, Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4244>
_______________________________________


More information about the Python-bugs-list mailing list