def foo(): def bar(): baz baz = 1 In the above example, bar's baz gets a yellow underline with the tooltip stating: "Undefined variable: baz". Package information: ii kdev-python 1.5.1-0ubuntu1~ubuntu13.04~ppa2 amd64 KDevelop Python Plugin ii kdevelop 4:4.5.1-0ubuntu5~ubuntu13.04~ppa2 amd64 integrated development environment for KDE
The behaviour is correct, this is not valid python code.
Er...this is valid Python code, and our bug. This will be fixed in 5.2, see the other report for details. *** This bug has been marked as a duplicate of bug 378083 ***