[Import-SIG] PEP 382 update? and implementation feedback
eric at trueblade.com
Thu Jul 7 11:39:38 CEST 2011
On 7/7/2011 12:35 AM, Eric Snow wrote:
> Any feedback on PJE's proposal  regarding PEP 382? I have some
> free time to work on a reference implementation and want to make sure
> I am targeting an up-to-date spec.
I've been working on a response, but haven't had time to post it yet.
Maybe in the next few days. I agree with most of it (and maybe all of
it, I'm still reading through it).
> My first goal is to help get a proof-of-concept implementation out
> there for the PEP, for 3.3, regardless of the ultimate implementation.
> However, my end goal is to leverage that effort into a backported
> implementation for 2.x. How far back should I go with that? I was
> thinking 2.4 .
We (python-dev) can't release a new version of 2.x. That said, I'd love
it if I could compile a version of 2.5 for my own uses that had this
feature, or if it could be done as an import hook.
> The import hook approach would not be helpful for 3.3 except as a
> proof-of-concept. However, the importlib approach could also work as
> the 3.3 implementation if Brett realizes his intentions for
> importlib.__import__ .
Are you thinking of doing the import hook version in C?
More information about the Import-SIG