diff options
author | Eric Smith <eric@trueblade.com> | 2008-03-18 23:45:49 +0000 |
---|---|---|
committer | Eric Smith <eric@trueblade.com> | 2008-03-18 23:45:49 +0000 |
commit | 7c47894a2aaa8dbc5397a256b16cd7deddef1d7e (patch) | |
tree | 8a04cef2a98907c1f20cde46f0efec77a5730a65 /Include/compile.h | |
parent | 6c0ff8aacd5b493892878e138b97af66e4bfaf37 (diff) | |
download | cpython-git-7c47894a2aaa8dbc5397a256b16cd7deddef1d7e.tar.gz |
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.
Diffstat (limited to 'Include/compile.h')
-rw-r--r-- | Include/compile.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/compile.h b/Include/compile.h index 2bde6fb56f..d703edb72b 100644 --- a/Include/compile.h +++ b/Include/compile.h @@ -24,6 +24,8 @@ typedef struct { #define FUTURE_DIVISION "division" #define FUTURE_ABSOLUTE_IMPORT "absolute_import" #define FUTURE_WITH_STATEMENT "with_statement" +#define FUTURE_PRINT_FUNCTION "print_function" + struct _mod; /* Declare the existence of this type */ PyAPI_FUNC(PyCodeObject *) PyAST_Compile(struct _mod *, const char *, |