Mercurial > cpython-lru_cache-weakref
diff Python/ast.c @ 39755:c591d9954fb3 legacy-trunk
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.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Tue, 05 Sep 2006 03:58:26 +0000 |
| parents | 8dcb882ec3e1 |
| children | 3d968b5fcaf9 |
line wrap: on
line diff
--- a/Python/ast.c Tue Sep 05 03:53:08 2006 +0000 +++ b/Python/ast.c Tue Sep 05 03:58:26 2006 +0000 @@ -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 @@ 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().
