from __future__ import print_function print ( ). , , .
, compiler c_future, PyFutureFeatures, , . .
future.c , future_parse(), import from AST , __future__, .
, barry_as_FLUFL ' != , <>:
if (type == NOTEQUAL) {
if (!(ps->p_flags & CO_FUTURE_BARRY_AS_BDFL) &&
strcmp(str, "!=")) {
PyObject_FREE(str);
err_ret->error = E_SYNTAX;
break;
}
else if ((ps->p_flags & CO_FUTURE_BARRY_AS_BDFL) &&
strcmp(str, "<>")) {
PyObject_FREE(str);
err_ret->text = "with Barry as BDFL, use '<>' "
"instead of '!='";
err_ret->error = E_SYNTAX;
break;
}
}
grepping FUTURE_* compile.h.
, __future__ Python module, ; Python ( flags compile()), .