mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
from __future__ import with_statement addon for 'with', mostly written by
Neal.
This commit is contained in:
parent
edc8f1366a
commit
34aa7ba114
16 changed files with 102 additions and 40 deletions
|
|
@ -46,6 +46,12 @@ typedef struct {
|
|||
#endif
|
||||
#define CO_FUTURE_DIVISION 0x2000
|
||||
#define CO_FUTURE_ABSIMPORT 0x4000 /* absolute import by default */
|
||||
#define CO_FUTURE_WITH_STATEMENT 0x8000
|
||||
|
||||
/* 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 CO_MAXBLOCKS 20 /* Max static block nesting within a function */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue