partial implementation of the "exec" statement
authorStefan Behnel <scoder@users.berlios.de>
Tue, 11 Nov 2008 21:10:45 +0000 (22:10 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Tue, 11 Nov 2008 21:10:45 +0000 (22:10 +0100)
commitb8a099a0e03d0110367739133b1dfccdcef47a55
tree7adecb90d0ceeb45240aa4ed5d21c39fe443fa99
parent4b1886f9f2613d8bee389e67d8fc2313e6261cd7
partial implementation of the "exec" statement
- only supports code in strings, not files (should be easy to add)
- only the "exec XYZ in GLOBALS [,LOCALS]" form is supported, not the execution in the current namespace (would require a mapping representation of it)
- also includes an incomplete (3-args only) and untested implementation for the exec() function in Py3
Cython/Compiler/Builtin.py
Cython/Compiler/Nodes.py
Cython/Compiler/Parsing.py
tests/run/exectest.pyx [new file with mode: 0644]