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: import hook demo does not work
Type: behavior Stage:
Components: Demos and Tools Versions: Python 3.1, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, blep, jackdied, sandro.tosi
Priority: normal Keywords: easy

Created on 2009-11-08 13:30 by blep, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg95040 - (view) Author: Baptiste Lepilleur (blep) Date: 2009-11-08 13:30
The import hook demo in the source directory
Python-3.1.1\Demo\imputil\knee.py fails to run correctly:

Python 3.1.1 (r311:74483, Aug 17 2009, 17:02:12) [MSC v.1500 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import knee
>>> import ctypes.utils
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: import_hook() takes at most 4 positional arguments (5 given)
>>>
msg99537 - (view) Author: Jack Diederich (jackdied) * (Python committer) Date: 2010-02-18 22:11
Thanks for the report, Demo/imputil is very old and should be removed.  It looks like this has already been partially done in 2.7.
msg118531 - (view) Author: Sandro Tosi (sandro.tosi) * (Python committer) Date: 2010-10-13 15:37
Hi Benjamin,
you are the author of r63966 (I know, it's quite old, sorry about that) where you removed Demo/imputil/importers.py : do you think Demo/imputil/knee.py is still something interesting to have or should this be removed altogether? In case it's still worth to be included, I can work on fix it.

Regards,
Sandro
msg118589 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2010-10-13 22:00
See r85429.
msg118590 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2010-10-13 22:04
2010/10/13 Sandro Tosi <report@bugs.python.org>:
>
> Sandro Tosi <sandro.tosi@gmail.com> added the comment:
>
> Hi Benjamin,
> you are the author of r63966 (I know, it's quite old, sorry about that) where you removed Demo/imputil/importers.py : do you think Demo/imputil/knee.py is still something interesting to have or should this be removed altogether? In case it's still worth to be included, I can work on fix it.

Thank you for your offer! However, knee.py looks old and obsolete, so
I'm going to remove it.
History
Date User Action Args
2022-04-11 14:56:54adminsetgithub: 51536
2010-10-13 22:04:40benjamin.petersonsetmessages: + msg118590
2010-10-13 22:00:54benjamin.petersonsetstatus: open -> closed
resolution: fixed
messages: + msg118589
2010-10-13 15:37:24sandro.tosisetnosy: + benjamin.peterson, sandro.tosi
messages: + msg118531
2010-02-18 22:11:19jackdiedsetversions: + Python 2.7
nosy: + jackdied

messages: + msg99537

keywords: + easy
2009-11-08 13:30:48blepcreate