Mercurial > cpython-lru_cache-weakref
diff Include/pythonrun.h @ 45891:727f743cf630 legacy-trunk
Backport of the print function, using a __future__ import.
This work is substantially Anthony Baxter's, from issue
1633807. I just freshened it, made a few minor tweaks,
and added the test cases. I also created issue 2412,
which is to check for 2to3's behavior with the print
function. I also added myself to ACKS.
| author | Eric Smith <eric@trueblade.com> |
|---|---|
| date | Tue, 18 Mar 2008 23:45:49 +0000 |
| parents | 262263737bce |
| children | 5341b30b1812 |
line wrap: on
line diff
--- a/Include/pythonrun.h Tue Mar 18 23:33:08 2008 +0000 +++ b/Include/pythonrun.h Tue Mar 18 23:45:49 2008 +0000 @@ -8,7 +8,7 @@ #endif #define PyCF_MASK (CO_FUTURE_DIVISION | CO_FUTURE_ABSOLUTE_IMPORT | \ - CO_FUTURE_WITH_STATEMENT) + CO_FUTURE_WITH_STATEMENT|CO_FUTURE_PRINT_FUNCTION) #define PyCF_MASK_OBSOLETE (CO_NESTED) #define PyCF_SOURCE_IS_UTF8 0x0100 #define PyCF_DONT_IMPLY_DEDENT 0x0200
