On Mar 20, 2012 1:11 PM, "Benjamin Peterson" <benjamin@python.org> wrote:
>
> Brett Cannon <brett@...> writes:
> >
> > I was wondering that myself when looking at imp.source_to_cache() at PyCon.
>
> What's implementation specific about that?

File suffixes on the .pyc files there include implementation information.  To get that info in Python you can use the platform module (not an option for bootstrapping importlib) or guess (essentially what the platform module does).

-eric

>
>
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas@python.org
> http://mail.python.org/mailman/listinfo/python-ideas