Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#778 @UndefinedVariable fails on splitted line

1.3.18
open
nobody
None
5
2008-08-27
2008-08-27
Steffen Siebert
No

In the following code the @UndefinedVariable comment doesn't suppress the code analysis error:

a = 10
c = b \ + a #@UndefinedVariable

If I switch a and b, it works as expected:

a = 10
c = a \ + b #@UndefinedVariable

Obviously @UndefinedVariable only works for the current line, but not for the whole multi-line python statement.

Discussion