RustPython / Parser

MIT License
67 stars 24 forks source link

Missing syntax for context manager expressions #70

Closed jmwielandt closed 1 year ago

jmwielandt commented 1 year ago

Summary

New syntax from 3.10 with (... as x, ... as y): of context managers is not supported. Checkout https://github.com/mtshiba/pylyzer/issues/30.

Expected

Add it :c

Actual

image

Python Documentation

Issue: https://bugs.python.org/issue12782 Release notes: https://www.python.org/downloads/release/python-3100/

fanninpm commented 1 year ago

@charliermarsh are you also seeing this in Ruff?

charliermarsh commented 1 year ago

RustPython supports this, I just tested via Ruff. Is Pylzer on an old version?

jmwielandt commented 1 year ago

Just upgraded pylyzer version and is fixed... this is not my day ;-; imagen

Sorry to bother you, and thanks!

charliermarsh commented 1 year ago

All good, glad it's resolved :)