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 incompatible with absolute_import feature
Type: behavior Stage:
Components: Interpreter Core, Library (Lib) Versions: Python 2.5.3, Python 2.6, Python 2.5
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: exarkun, georg.brandl, scoder
Priority: normal Keywords:

Created on 2008-10-31 13:32 by exarkun, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg75414 - (view) Author: Jean-Paul Calderone (exarkun) * (Python committer) Date: 2008-10-31 13:32
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@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)
>>>
msg75705 - (view) Author: Stefan Behnel (scoder) * (Python committer) Date: 2008-11-10 19:58
This is an (extended) duplicate of issue4152.
msg77058 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-12-05 19:25
ihooks is undocumented and deprecated, so I doubt anything will be done
about that.
History
Date User Action Args
2022-04-11 14:56:40adminsetgithub: 48494
2008-12-05 19:25:57georg.brandlsetstatus: open -> closed
nosy: + georg.brandl
resolution: wont fix
messages: + msg77058
2008-11-10 19:58:22scodersetnosy: + scoder
messages: + msg75705
2008-10-31 13:32:39exarkuncreate