self-assigning-variable / W0127#
Message emitted:
Assigning the same variable %r to itself
Description:
Emitted when we detect that a variable is assigned to itself
Correct code:
year = 2000
Problematic code:
year = 2000
year = year # [self-assigning-variable]
Related links:
Created by the basic checker.