Bug 359907 - Module imported twice makes first one become undefined
Summary: Module imported twice makes first one become undefined
Status: CONFIRMED
Alias: None
Product: kdev-python
Classification: Developer tools
Component: Language support (show other bugs)
Version: frameworks
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: 1.7.3
Assignee: Sven Brauch
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-28 23:27 UTC by Nicolás Alvarez
Modified: 2018-01-19 09:25 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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