diff options
author | Guido van Rossum <guido@python.org> | 2006-03-15 04:58:47 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2006-03-15 04:58:47 (GMT) |
commit | 45aecf451a64fb1ebe5e74d0b00965ac8d99dff6 (patch) | |
tree | a7edcfb45ceafcffde68a3542aeba67089ea81cb /Include/code.h | |
parent | f3175f6341ae207543a0d2d3be36c457349066e6 (diff) | |
download | cpython-45aecf451a64fb1ebe5e74d0b00965ac8d99dff6.zip cpython-45aecf451a64fb1ebe5e74d0b00965ac8d99dff6.tar.gz cpython-45aecf451a64fb1ebe5e74d0b00965ac8d99dff6.tar.bz2 |
Checkpoint. 218 tests are okay; 53 are failing. Done so far:
- all classes are new-style (but ripping out classobject.[ch] isn't done)
- int/int -> float
- all exceptions must derive from BaseException
- absolute import
- 'as' and 'with' are keywords
Diffstat (limited to 'Include/code.h')
-rw-r--r-- | Include/code.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Include/code.h b/Include/code.h index 9e6cb56..a4509e3 100644 --- a/Include/code.h +++ b/Include/code.h @@ -41,17 +41,17 @@ typedef struct { #define CO_NOFREE 0x0040 #if 0 -/* This is no longer used. Stopped defining in 2.5, do not re-use. */ +/* These are no longer used. */ #define CO_GENERATOR_ALLOWED 0x1000 -#endif #define CO_FUTURE_DIVISION 0x2000 #define CO_FUTURE_ABSIMPORT 0x4000 /* absolute import by default */ #define CO_FUTURE_WITH_STATEMENT 0x8000 +#endif /* This should be defined if a future statement modifies the syntax. For example, when a keyword is added. */ -#define PY_PARSER_REQUIRES_FUTURE_KEYWORD +/* #define PY_PARSER_REQUIRES_FUTURE_KEYWORD */ #define CO_MAXBLOCKS 20 /* Max static block nesting within a function */ |