Skip to content
  • Damien George's avatar
    py/compile: Simplify syntax-error messages for illegal assignments. · f55a059e
    Damien George authored
    With this patch all illegal assignments are reported as "can't assign to
    expression".  Before the patch there were special cases for a literal on
    the LHS, and for augmented assignments (eg +=), but it seems a waste of
    bytes (and there are lots of bytes used in error messages) to spend on
    distinguishing such errors which a user will rarely encounter.
    f55a059e