diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-09-05 03:58:26 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-09-05 03:58:26 (GMT) |
commit | e4d4f00aeec12cc681b977f50e2b52eff7a11db1 (patch) | |
tree | f3de18b0451a680476d7ca28556004d521c93749 | |
parent | dac090d3e62cadd24fc6b73ab177bf98326c1849 (diff) | |
download | cpython-e4d4f00aeec12cc681b977f50e2b52eff7a11db1.zip cpython-e4d4f00aeec12cc681b977f50e2b52eff7a11db1.tar.gz cpython-e4d4f00aeec12cc681b977f50e2b52eff7a11db1.tar.bz2 |
Add a comment about some refactoring. (There's probably more that should be done.) I will reformat this file in the next checkin due to the inconsistent tabs/spaces.
-rw-r--r-- | Python/ast.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Python/ast.c b/Python/ast.c index 4d0b991..d2a9bd1 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -15,12 +15,6 @@ #include <assert.h> -/* XXX TO DO - - re-indent this file (should be done) - - internal error checking (freeing memory, etc.) - - syntax errors -*/ - /* Data structure used internally */ struct compiling { char *c_encoding; /* source encoding */ @@ -889,6 +883,11 @@ ast_for_ifexpr(struct compiling *c, const node *n) c->c_arena); } +/* XXX(nnorwitz): the listcomp and genexpr code should be refactored + so there is only a single version. Possibly for loops can also re-use + the code. +*/ + /* Count the number of 'for' loop in a list comprehension. Helper for ast_for_listcomp(). |