| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -56,6 +56,7 @@ | |||
| 56 | 56 | "print_function", | |
| 57 | 57 | "unicode_literals", | |
| 58 | 58 | "barry_as_FLUFL", | |
| 59 | + "generator_stop", | ||
| 59 | 60 | ] | |
| 60 | 61 | ||
| 61 | 62 | __all__ = ["all_feature_names"] + all_feature_names | |
@@ -72,6 +73,7 @@ | |||
| 72 | 73 | CO_FUTURE_PRINT_FUNCTION = 0x10000 # print function | |
| 73 | 74 | CO_FUTURE_UNICODE_LITERALS = 0x20000 # unicode string literals | |
| 74 | 75 | CO_FUTURE_BARRY_AS_BDFL = 0x40000 | |
| 76 | + CO_FUTURE_GENERATOR_STOP = 0x80000 # StopIteration becomes RuntimeError in generators | ||
| 75 | 77 | ||
| 76 | 78 | class _Feature: | |
| 77 | 79 | def __init__(self, optionalRelease, mandatoryRelease, compiler_flag): | |
@@ -132,3 +134,7 @@ def __repr__(self): | |||
| 132 | 134 | barry_as_FLUFL = _Feature((3, 1, 0, "alpha", 2), | |
| 133 | 135 | (3, 9, 0, "alpha", 0), | |
| 134 | 136 | CO_FUTURE_BARRY_AS_BDFL) | |
| 137 | + | ||
| 138 | + generator_stop = _Feature((3, 5, 0, "beta", 1), | ||
| 139 | + (3, 7, 0, "alpha", 0), | ||
| 140 | + CO_FUTURE_GENERATOR_STOP) | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments