We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db48ddc commit 38ec6a9Copy full SHA for 38ec6a9
Python/ast.c
@@ -9,7 +9,11 @@
9
#include "ast.h"
10
#include "token.h"
11
#include "pythonrun.h"
12
+/* A Windows header defines its own Yield macro, so we don't use the one
13
+ * from Python-ast.h and instead call _Py_Yield() directly. [ugh] */
14
+#undef Yield
15
#include "internal/pystate.h"
16
17
18
#include <assert.h>
19
#include <stdbool.h>
@@ -2703,7 +2707,7 @@ ast_for_expr(struct compiling *c, const node *n)
2703
2707
}
2704
2708
if (is_from)
2705
2709
return YieldFrom(exp, LINENO(n), n->n_col_offset, c->c_arena);
2706
- return Yield(exp, LINENO(n), n->n_col_offset, c->c_arena);
2710
+ return _Py_Yield(exp, LINENO(n), n->n_col_offset, c->c_arena);
2711
2712
case factor:
2713
if (NCH(n) == 1) {
0 commit comments