Skip to content

An operator issue '=+' #97895

Closed as not planned
Closed as not planned
@mic-user

Description

@mic-user

Bug report

An ambigous operator allowed to use. '=+' which is not '+='

Your environment

  • python-3.10.7
  • Windows 11 22H2
  • AMD CPU

Expectation:

Make an error message when weired operators are used as this and to be corrected by user.

Test code:

_wait_seconds = 0
while _wait_seconds < 8: #
#print('processing 1', _wait_seconds)
_wait_seconds =+ 1 # <<---- this makes infinite loop
#print('processing 2', _wait_seconds)

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions