Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.4k
Open
Description
Feature or enhancement
Currently when user makes an error with mixing up==
and=
there's a special error for that:
>>>1=2File"<python-input-1>",line11=2^SyntaxError:cannotassigntoliteralhere.Maybeyoumeant'=='insteadof'='?
But, not when usingassert
, where we do lots of==
operations naturally:
>>>assert1=2File"<python-input-0>",line1assert1=2^SyntaxError:invalidsyntax
I will send a PR with the improvement.