mirror of
https://github.com/python/cpython.git
synced 2025-07-12 05:45:15 +00:00
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
This commit is contained in:
parent
f3175f6341
commit
45aecf451a
24 changed files with 87 additions and 6365 deletions
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue