SyntaxError or IndentationError (E901)
The code is not in valid Python syntax.
Anti-pattern
This code is not valid Python.
if (this.isNotPython()) {
# Syntax error!
}
Best practice
if self.isPython():
# Happily chug along
The code is not in valid Python syntax.
This code is not valid Python.
if (this.isNotPython()) {
# Syntax error!
}
if self.isPython():
# Happily chug along