We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58f10e4 commit 9a146c9Copy full SHA for 9a146c9
tests/cpydiff/syntax_assign_expr.py
@@ -0,0 +1,7 @@
1
+"""
2
+categories: Syntax,Operators
3
+description: MicroPython allows using := to assign to the variable of a comprehension, CPython raises a SyntaxError.
4
+cause: MicroPython is optimised for code size and doesn't check this case.
5
+workaround: Do not rely on this behaviour if writing CPython compatible code.
6
7
+print([i := -1 for i in range(4)])
0 commit comments