Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 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 | 4706b7a1256c |
| children | 5aecedc98af6 |
comparison
equal
deleted
inserted
replaced
| 36985:4a896fc12384 | 36988:49c6eb688906 |
|---|---|
| 694 } | 694 } |
| 695 | 695 |
| 696 /* compute parser flags based on compiler flags */ | 696 /* compute parser flags based on compiler flags */ |
| 697 #define PARSER_FLAGS(flags) \ | 697 #define PARSER_FLAGS(flags) \ |
| 698 ((flags) ? ((((flags)->cf_flags & PyCF_DONT_IMPLY_DEDENT) ? \ | 698 ((flags) ? ((((flags)->cf_flags & PyCF_DONT_IMPLY_DEDENT) ? \ |
| 699 PyPARSE_DONT_IMPLY_DEDENT : 0) \ | 699 PyPARSE_DONT_IMPLY_DEDENT : 0)) : 0) |
| 700 | ((flags)->cf_flags & CO_FUTURE_WITH_STATEMENT ? \ | |
| 701 PyPARSE_WITH_IS_KEYWORD : 0)) : 0) | |
| 702 | 700 |
| 703 int | 701 int |
| 704 PyRun_InteractiveOneFlags(FILE *fp, const char *filename, PyCompilerFlags *flags) | 702 PyRun_InteractiveOneFlags(FILE *fp, const char *filename, PyCompilerFlags *flags) |
| 705 { | 703 { |
| 706 PyObject *m, *d, *v, *w; | 704 PyObject *m, *d, *v, *w; |
