Re: [Python-Dev] LOAD_CONST POP_TOP
Hi Georg, On Fri, Jun 30, 2006 at 08:39:13PM +0200, Georg Brandl wrote: > + case LOAD_CONST: > + cumlc = lastlc + 1; > + /* Skip over LOAD_CONST POP_TOP */ > + if (codestr[i+3] == POP_TO
[Python-Dev] LOAD_CONST POP_TOP
Hi, the following patch tries to fix the LOAD_CONST POP_TOP optimization lost in 2.5 (bug #1333982). An example for this is: def f(): 'a' # docstring 'b' Georg PS: Hmm. While looking, I see that 2.4 doesn't optimize away other constants like def g(): 1 Index: Python/compile.c ===