From 8170e8c0d12cb9414f3a3d3ca81a447b4afc5f26 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Sat, 9 May 2015 11:44:30 -0400 Subject: PEP 479: Change StopIteration handling inside generators. Closes issue #22906. --- Include/pythonrun.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Include/pythonrun.h') diff --git a/Include/pythonrun.h b/Include/pythonrun.h index 1d9b71beaa..f92148da07 100644 --- a/Include/pythonrun.h +++ b/Include/pythonrun.h @@ -9,7 +9,8 @@ extern "C" { #define PyCF_MASK (CO_FUTURE_DIVISION | CO_FUTURE_ABSOLUTE_IMPORT | \ CO_FUTURE_WITH_STATEMENT | CO_FUTURE_PRINT_FUNCTION | \ - CO_FUTURE_UNICODE_LITERALS | CO_FUTURE_BARRY_AS_BDFL) + CO_FUTURE_UNICODE_LITERALS | CO_FUTURE_BARRY_AS_BDFL | \ + CO_FUTURE_GENERATOR_STOP) #define PyCF_MASK_OBSOLETE (CO_NESTED) #define PyCF_SOURCE_IS_UTF8 0x0100 #define PyCF_DONT_IMPLY_DEDENT 0x0200 -- cgit v1.2.1