On 9/21/06, <b class="gmail_sendername">Guido van Rossum</b> <<a href="mailto:guido@python.org">guido@python.org</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 9/21/06, Paul Moore <<a href="mailto:p.f.moore@gmail.com">p.f.moore@gmail.com</a>> wrote:<br>[SNIP]<br>> Hmm, I might play with this - a set of PEP 302 importers to completely<br>> customise the import mechanism. The never-completed "phase 2" of the
<br>> PEP included a reimplementation of the built in import mechanism as<br>> hooks. Is there any interest in this actually happening? I've been<br>> looking for an interesting coding project for a while (although I
<br>> never have any free time...)<br><br>There's a general desire to reimplement import entirely in Python for<br>more flexibility. I believe Brett Cannon is working on this.</blockquote><div><br>Since I need to control imports to the point of being able to deny importing built-in and extension modules, I was planning on re-implementing the import system to use PEP 302 importers. Possibly do it in pure Python for ease-of-use. Then that can be worked off of for possible Py3K improvements to the import system.
<br><br>But either way I will be messing with the import system in the relatively near future. If you want to help, Paul (or anyone else), just send me an email and we can try to coordinate something (plan to do the work in the sandbox as a separate thing from my security stuff).
<br><br>-Brett</div></div>