Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 36726:bbf16fd024df legacy-trunk
from __future__ import with_statement addon for 'with', mostly written by
Neal.
| author | Thomas Wouters <thomas@python.org> |
|---|---|
| date | Tue, 28 Feb 2006 19:02:24 +0000 |
| parents | 2ab9270ef19a |
| children | 8e04de2480e4 |
comparison
equal
deleted
inserted
replaced
| 36725:99066bea17f8 | 36726:bbf16fd024df |
|---|---|
| 688 } | 688 } |
| 689 } | 689 } |
| 690 | 690 |
| 691 /* compute parser flags based on compiler flags */ | 691 /* compute parser flags based on compiler flags */ |
| 692 #define PARSER_FLAGS(flags) \ | 692 #define PARSER_FLAGS(flags) \ |
| 693 (((flags) && (flags)->cf_flags & PyCF_DONT_IMPLY_DEDENT) ? \ | 693 ((flags) ? ((((flags)->cf_flags & PyCF_DONT_IMPLY_DEDENT) ? \ |
| 694 PyPARSE_DONT_IMPLY_DEDENT : 0) | 694 PyPARSE_DONT_IMPLY_DEDENT : 0) \ |
| 695 | ((flags)->cf_flags & CO_FUTURE_WITH_STATEMENT ? \ | |
| 696 PyPARSE_WITH_IS_KEYWORD : 0)) : 0) | |
| 695 | 697 |
| 696 int | 698 int |
| 697 PyRun_InteractiveOneFlags(FILE *fp, const char *filename, PyCompilerFlags *flags) | 699 PyRun_InteractiveOneFlags(FILE *fp, const char *filename, PyCompilerFlags *flags) |
| 698 { | 700 { |
| 699 PyObject *m, *d, *v, *w; | 701 PyObject *m, *d, *v, *w; |
