Bug 323796 - Incomplete support for nested function variable scoping
Summary: Incomplete support for nested function variable scoping
Status: RESOLVED DUPLICATE of bug 378083
Alias: None
Product: kdev-python
Classification: Developer tools
Component: Language support (show other bugs)
Version: 1.5.x
Platform: Ubuntu Linux
: NOR normal
Target Milestone: 1.6.0
Assignee: Sven Brauch
Depends on:
Reported: 2013-08-20 19:03 UTC by Antonis Kanouras
Modified: 2017-08-31 01:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.2.0


Note You need to log in before you can comment on or make changes to this bug.
Description Antonis Kanouras 2013-08-20 19:03:54 UTC
def foo():
    def bar():

    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
Comment 1 Sven Brauch 2016-06-13 07:09:09 UTC
The behaviour is correct, this is not valid python code.
Comment 2 Francis Herne 2017-08-31 01:34:18 UTC
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 ***