[Python-ideas] Refactoring the import system to be object-oriented at the top level
Nick Coghlan
ncoghlan at gmail.com
Sun Nov 8 21:56:01 CET 2009
Mathias Panzenböck wrote:
> Sounds like the ClassLoader in Java. I think it would be a good idea.
On further reflection, it occurred to me that it should be possible to
do something along these lines with importlib, *without* necessarily
replacing the builtin import machinery (i.e. having a special instance
of the class that mapped its instance attributes to the appropriate sys
module attributes).
Unfortunately, I doubt I'll have the cycles any time soon to pursue the
idea further :P
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
More information about the Python-ideas
mailing list