Mercurial > cpython-lru_cache-weakref
diff Include/code.h @ 36988:49c6eb688906
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
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 15 Mar 2006 04:58:47 +0000 |
| parents | bbf16fd024df |
| children | f731859e9b3b |
line wrap: on
line diff
--- a/Include/code.h Tue Mar 14 22:22:15 2006 +0000 +++ b/Include/code.h Wed Mar 15 04:58:47 2006 +0000 @@ -41,17 +41,17 @@ #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 */
