summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2000-05-02 22:32:59 +0000
committerJeremy Hylton <jeremy@alum.mit.edu>2000-05-02 22:32:59 +0000
commit86c21d60a48dc8eb925b76762e0538e59ca5ea9c (patch)
treebe4374be04f3951819fea618d9c6fc9d6fb5fc6e /Python/pythonrun.c
parent6064e922f6773bcc3fd4b96aea0354929375cf21 (diff)
downloadcpython-86c21d60a48dc8eb925b76762e0538e59ca5ea9c.tar.gz
patches from Mark Hammond
Attached is a set of diffs for the .py compiler that adds support for the new extended call syntax. compiler/ast.py: CallFunc node gets 2 new children to support extended call syntax - "star_args" (for "*args") and "dstar_args" (for "**args") compiler/pyassem.py It appear that self.lnotab is supposed to be responsible for tracking line numbers, but self.firstlineno was still hanging around. Removed self.firstlineno completely. NOTE - I didnt actually test that the generated code has the correct line numbers!! Stack depth tracking appeared a little broken - the checks never made it beyond the "self.patterns" check - thus, the custom methods were never called! Fixed this. (XXX Jeremy notes: I think this code is still broken because it doesn't track stack effects across block bounaries.) Added support for the new extended call syntax opcodes for depth calculations. compiler/pycodegen.py Added support for the new extended call syntax opcodes. compiler/transformer.py Added support for the new extended call syntax.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions