views:

218

answers:

2

Why was the imputil module removed from python3.0 and what should be used in its place?

+5  A: 

According to PEP 3108, it was rarely used, undocumented and never updated to support absolute imports.

+4  A: 

In Python 3.1, there is a module called importlib, which should be a superior replacement for imputil.

Benjamin Peterson
Very nice. I wonder why imputil was removed before adding importlib? very strange...
brad
Python 3 was primarily an opportunity for removing cruft, and imputil was seen as such (per PEP 3108, as @unknown says). To get a voice on such decisions in the future, join python-dev!-)
Alex Martelli