Replies: 3 comments
-
PEP636 has been discussed - the consensus seemed to be "unlikely". I gather it requires a different parser and the implementation is unlikely to be "micro". |
Beta Was this translation helpful? Give feedback.
-
I suspected something like that; pity. thanks. |
Beta Was this translation helpful? Give feedback.
-
A bit of history. The new PEG parser (PEP 617) were released with CPython 3.9. This change allowed to implement the walrus operator (assignment expression). The structural pattern matching (PEP 622) was introduced with CPython 3.10 and was the first use of a soft keyword. Quote from the PEP:
My implication is, if a If someone could write a PEG parser for micropython, which is in size equal or smaller, this would be a nice addition. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How likely is it that the Python match-statememt will ever be included in microPython?
Beta Was this translation helpful? Give feedback.
All reactions