PY3.E0107

Nonexistent operator

Used when you attempt to use the C-style pre-increment or pre-decrement operator -- and ++, which doesn't exist in Python. This message belongs to the basic checker.

Noncompliant Code:

Copy
i = 0

while i <= 10:
    print(i)
    i++

Compliant Code:

Copy
i = 0

while i <= 10:
    print(i)
    i += 1

The content on this page is adapted from the Pylint User Guide, Copyright ©2003-2022, Logilab, PyCQA and contributors. All rights reserved. https://pylint.pycqa.org/en/latest/index.html#, and is used under the Python Software Foundation License Version 2. Examples, recipes, and other code in the Pylint documentation are additionally licensed under the Zero Clause BSD License.