Importing by file name

Mark Lawrence breamoreboy at yahoo.co.uk
Sun Nov 24 17:30:27 CET 2013


On 24/11/2013 14:15, Steven D'Aprano wrote:
>
> That was the case up to 3.3, but Python 3.4 has the import machinery re-
> written in pure Python (except for a tiny bit of bootstrapping machinery,
> if I understand correctly). I understand that nobody understood the
> import machinery in full (although there were a couple of people who
> understood most of it), and that moving it to Python was a Herculean job.
> If I remember correctly, it uncovered a number of undetected bugs and
> dark corners with unspecified behaviour.
>

The import mechanism was rewritten in 3.3 see 
http://docs.python.org/3/whatsnew/3.3.html#importlib.  PEP 451 also does 
work on the import mechanism http://www.python.org/dev/peps/pep-0451/ 
This is in 3.4, see http://bugs.python.org/issue18864 and a rather long 
list of associated issues.

-- 
Python is the second best programming language in the world.
But the best has yet to be invented.  Christian Tismer

Mark Lawrence




More information about the Python-list mailing list