Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python3.0: imputils

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

like image 931
brad Avatar asked Jun 06 '09 21:06

brad


2 Answers

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

like image 181
Benjamin Peterson Avatar answered Sep 19 '22 15:09

Benjamin Peterson


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

like image 28
brian-brazil Avatar answered Sep 19 '22 15:09

brian-brazil