[Python-Dev] PEP 488: elimination of PYO files

Brett Cannon brett at python.org
Sat Mar 7 01:03:14 CET 2015


On Fri, Mar 6, 2015 at 5:47 PM Antoine Pitrou <solipsis at pitrou.net> wrote:

> On Sat, 7 Mar 2015 09:34:20 +1100
> Steven D'Aprano <steve at pearwood.info> wrote:
>
> > On Fri, Mar 06, 2015 at 09:37:05PM +0100, Antoine Pitrou wrote:
> > > On Fri, 06 Mar 2015 18:11:19 +0000
> > > Brett Cannon <brett at python.org> wrote:
> > > > And the dropping of docstrings does have an impact on
> > > > memory usage when you use Python at scale.
> > >
> > > What kind of "scale" are you talking about? Do you have any numbers
> > > about such impact?
> > >
> > > > You're also assuming that we will never develop an AST optimizer
> > >
> > > No, the assumption is that we don't have such an optimizer *right now*.
> > > Having command-line options because they might be useful some day is
> > > silly.
> >
> > Quoting the PEP:
> >
> >     This issue is only compounded when people optimize Python
> >     code beyond what the interpreter natively supports, e.g.,
> >     using the astoptimizer project [2]_.
>
> The astoptimizer project is not part of Python. It's third-party
> software that has no relationship to .pyo files.
>

Directly, no. But the point is that the PEP enables the astoptimizer
project to write out .pyc files specifying different optimizations that
won't clash with -O or -OO .pyc files.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20150307/ba0fe147/attachment.html>


More information about the Python-Dev mailing list