Skip to content

async-detection: nonlocal does not raise syntaxerror #11312

Description

@Carreau

See #11303 (comment)

In [1]: x = 1
   ...: def f():
   ...:     nonlocal x
   ...:     x = 10000

Should raise but does not.

It's minor, but may be good to fix as behavior is likely undefined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Hacktoberfestyou want to participate to hacktoberfest ? Here is an easy issue.async/await

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions