https://bugs.kde.org/show_bug.cgi?id=385464
Bug ID: 385464 Summary: Assignment to global or nonlocal variables only affects the local scope. Product: kdev-python Version: 5.1.80 Platform: Compiled Sources OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: Language support Assignee: m...@svenbrauch.de Reporter: m...@flherne.uk Target Milestone: --- Example: ``` zep = "foo" def foo(): global bar nonlocal zep bar = 10 zep = 20 foo() print(bar, zep) ``` At the end, `bar` and `zep` are both integer values. KDevelop shows `bar` to be undefined (with a warning) and `zep` as a string. -- You are receiving this mail because: You are watching all bug changes.