[Python-Dev] Re: [Python-checkins] python/dist/src/Python compile.c, 2.311, 2.312 (original) (raw)
Guido van Rossum guido at python.org
Tue Aug 3 16🔞15 CEST 2004
- Previous message: [Python-Dev] Optimized string concatenation
- Next message: [Python-Dev] Re: [Python-checkins] python/dist/src/Python compile.c, 2.311, 2.312
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Log Message: Don't intern the filename of a file being compiled. Hard to believe it ever helped anything, and it hurts finding reference leaks.
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.
Good catch.
--Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] Optimized string concatenation
- Next message: [Python-Dev] Re: [Python-checkins] python/dist/src/Python compile.c, 2.311, 2.312
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]