You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is invalid in Python 2 (and the existing Python 2.7.8 compiler will give you a SyntaxError for this), but valid in Python 3 due to PEP 380 http://legacy.python.org/dev/peps/pep-0380/
The following is accepted by the compiler, even though it is not valid in Python:
There should be a compile error if mixing return with an argument and yield within the same function.
Update: only disallow this in Python 2 (see below).
The text was updated successfully, but these errors were encountered: