Python: update version check

doc said 3.5 experience says 3.7
This commit is contained in:
Rasmus Lerchedahl Petersen
2022-09-05 10:50:53 +02:00
parent a8a042db57
commit afb50212a0

View File

@@ -69,9 +69,11 @@ where
not stop_iteration_handled(call) and
// PEP 479 removes this concern from 3.5 onwards
// see: https://peps.python.org/pep-0479/
//
// However, testing it out, the problem is not removed until 3.7.
(
major_version() = 2
or
major_version() = 3 and minor_version() < 5
major_version() = 3 and minor_version() < 7
)
select call, "Call to next() in a generator"