RustPython/Parser

Missing syntax for context manager expressions

Closed this issue · 4 comments

Summary

New syntax from 3.10 with (... as x, ... as y): of context managers is not supported. Checkout mtshiba/pylyzer#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/

@charliermarsh are you also seeing this in Ruff?

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

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

Sorry to bother you, and thanks!

All good, glad it's resolved :)