Mercurial > cpython-lru_cache-weakref
comparison Include/code.h @ 55062:65e41bcbc25d 3.1
Merged revisions 73782-73784 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r73782 | benjamin.peterson | 2009-07-02 16:44:01 -0500 (Thu, 02 Jul 2009) | 1 line
the old CO_FUTURE flags can't be commented out
................
r73783 | benjamin.peterson | 2009-07-02 16:54:36 -0500 (Thu, 02 Jul 2009) | 1 line
a little more fiddling to make flags like 2.x
................
r73784 | benjamin.peterson | 2009-07-02 16:55:39 -0500 (Thu, 02 Jul 2009) | 9 lines
Merged revisions 73781 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r73781 | benjamin.peterson | 2009-07-02 16:38:36 -0500 (Thu, 02 Jul 2009) | 1 line
test that compile() accepts the future flag
........
................
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Thu, 02 Jul 2009 22:02:15 +0000 |
| parents | 0530aadff696 |
| children | 3c9232a684ae |
comparison
equal
deleted
inserted
replaced
| 55048:e5c8290c7949 | 55062:65e41bcbc25d |
|---|---|
| 40 to determine whether there is any extra work to be done when the | 40 to determine whether there is any extra work to be done when the |
| 41 call frame it setup. | 41 call frame it setup. |
| 42 */ | 42 */ |
| 43 #define CO_NOFREE 0x0040 | 43 #define CO_NOFREE 0x0040 |
| 44 | 44 |
| 45 /* These are no longer used. */ | |
| 45 #if 0 | 46 #if 0 |
| 46 /* These are no longer used. */ | |
| 47 #define CO_GENERATOR_ALLOWED 0x1000 | 47 #define CO_GENERATOR_ALLOWED 0x1000 |
| 48 #endif | |
| 48 #define CO_FUTURE_DIVISION 0x2000 | 49 #define CO_FUTURE_DIVISION 0x2000 |
| 49 #define CO_FUTURE_ABSOLUTE_IMPORT 0x4000 /* do absolute imports by default */ | 50 #define CO_FUTURE_ABSOLUTE_IMPORT 0x4000 /* do absolute imports by default */ |
| 50 #define CO_FUTURE_WITH_STATEMENT 0x8000 | 51 #define CO_FUTURE_WITH_STATEMENT 0x8000 |
| 51 #define CO_FUTURE_PRINT_FUNCTION 0x10000 | 52 #define CO_FUTURE_PRINT_FUNCTION 0x10000 |
| 52 #define CO_FUTURE_UNICODE_LITERALS 0x20000 | 53 #define CO_FUTURE_UNICODE_LITERALS 0x20000 |
| 53 #endif | |
| 54 | 54 |
| 55 #define CO_FUTURE_BARRY_AS_BDFL 0x40000 | 55 #define CO_FUTURE_BARRY_AS_BDFL 0x40000 |
| 56 | 56 |
| 57 /* This should be defined if a future statement modifies the syntax. | 57 /* This should be defined if a future statement modifies the syntax. |
| 58 For example, when a keyword is added. | 58 For example, when a keyword is added. |
