Bug 359907

Summary: Module imported twice makes first one become undefined
Product: [Developer tools] kdev-python Reporter: Nicolás Alvarez <nalvarez>
Component: Language supportAssignee: Sven Brauch <mail>
Status: CONFIRMED ---    
Severity: normal CC: locked.shadow, mail
Priority: NOR    
Version: frameworks   
Target Milestone: 1.7.3   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nicolás Alvarez 2016-02-28 23:27:14 UTC
If a module is imported twice in a script, it becomes undefined between the first and the second import. For example:

import os
print(os.name) # 'os' is underlined in green, tooltip says 'Undefined variable', 'name' is black
import os
print(os.name) # both 'os' and 'name' are highlighted green, no underline