diff options
author | Eric Smith <eric@trueblade.com> | 2008-03-18 23:45:49 (GMT) |
---|---|---|
committer | Eric Smith <eric@trueblade.com> | 2008-03-18 23:45:49 (GMT) |
commit | 7c47894a2aaa8dbc5397a256b16cd7deddef1d7e (patch) | |
tree | 8a04cef2a98907c1f20cde46f0efec77a5730a65 /Include/parsetok.h | |
parent | 6c0ff8aacd5b493892878e138b97af66e4bfaf37 (diff) | |
download | cpython-7c47894a2aaa8dbc5397a256b16cd7deddef1d7e.zip cpython-7c47894a2aaa8dbc5397a256b16cd7deddef1d7e.tar.gz cpython-7c47894a2aaa8dbc5397a256b16cd7deddef1d7e.tar.bz2 |
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/parsetok.h')
-rw-r--r-- | Include/parsetok.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/parsetok.h b/Include/parsetok.h index 2b4ce1e..808c72c 100644 --- a/Include/parsetok.h +++ b/Include/parsetok.h @@ -27,6 +27,10 @@ typedef struct { #define PyPARSE_WITH_IS_KEYWORD 0x0003 #endif +#define PyPARSE_PRINT_IS_FUNCTION 0x0004 + + + PyAPI_FUNC(node *) PyParser_ParseString(const char *, grammar *, int, perrdetail *); PyAPI_FUNC(node *) PyParser_ParseFile (FILE *, const char *, grammar *, int, |