[Python-Dev] Re: [Python-checkins] python/dist/src/Python compile.c, 2.311, 2.312

Guido van Rossum guido at python.org
Tue Aug 3 16:34:57 CEST 2004


> > The intention was to introduce sharing of the filename object between
> > code objects compiled from the same file (remember that every method
> > is a separate code object).
> > 
> > But I believe the sharing won't happen when the code is loaded from a
> > bytecoded file instead, so it is indeed wasted efficiency.
> 
> In 2.4, it would: strings that are interned when being marshalled will
> get interned on unmarshalling.

Aha!  So maybe we should reconsider whether mwh's removal of the
filename interning in the compiler should be reverted.

--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant