Message406351
In CPython 3.10 :
Python 3.10.0 (tags/v3.10.0:b494f59, Oct 4 2021, 19:00:18) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> @x = 123
File "<stdin>", line 1
@x = 123
^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
but both suggestions lead to a SyntaxError :
>>> @x == 123
...
File "<stdin>", line 2
^
SyntaxError: invalid syntax
>>> @x := 123
...
File "<stdin>", line 2
^
SyntaxError: invalid syntax
>>>
Maybe an error message such as "cannot assign to decorator" would be more appropriate ? |
|
Date |
User |
Action |
Args |
2021-11-15 14:41:01 | quentel | set | recipients:
+ quentel, lys.nikolaou, pablogsal |
2021-11-15 14:41:01 | quentel | set | messageid: <1636987261.75.0.479908594511.issue45807@roundup.psfhosted.org> |
2021-11-15 14:41:01 | quentel | link | issue45807 messages |
2021-11-15 14:41:01 | quentel | create | |
|