[Patches] [ python-Patches-431422 ] "print" not emitting POP_TOP
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 08 Jun 2001 08:54:36 -0700
Patches item #431422, was updated on 2001-06-08 08:54
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=431422&group_id=5470
Category: Parser/Compiler
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Shane Hathaway (hathawsh)
Assigned to: Nobody/Anonymous (nobody)
Summary: "print" not emitting POP_TOP
Initial Comment:
The Python-based compiler module (in Tools) has a bug
in the visitPrint() method of
pycodegen.CodeGenerator. It does not emit a trailing
POP_TOP instruction, which AFAICT it should emit only
when outputting to a stream and there is a trailing
comma (indicating no newline). I've attached the
patch applied to Zope's RestrictedPython module; if
there is anything incorrect about it please tell me
right away. Otherwise please apply the patch to
Tools/compiler/pycodgen.py.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=431422&group_id=5470