Bug 363607 - Import statements pollute the variable model
Summary: Import statements pollute the variable model
Status: RESOLVED FIXED
Alias: None
Product: cantor
Classification: Applications
Component: python2-backend (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Semke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-27 21:00 UTC by Alexander Semke
Modified: 2018-01-13 13:25 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Semke 2016-05-27 21:00:58 UTC
Importing of python modules leads to new entries in the variable model. Looks like an entry is created for each addition import within the modules being imported. The user expects to see in the variable model only variables created by himself. Any internal details of used modules are of interest or of any usage here.

Reproducible: Always

Steps to Reproduce:
1. create a python session and do "import numpy"
2. in the variable manager observe new variables with the names "numpy", "sys", "scipy" and "matplotlib"
Comment 1 Alexander Semke 2018-01-13 13:25:51 UTC
Git commit b9233f89861069bad0db8b6a134f6fd2786e806e by Alexander Semke.
Committed on 13/01/2018 at 13:24.
Pushed by asemke into branch 'master'.

Don't add imported python module names to the variable model and manager.
FIXED-IN: 18.03

M  +7    -10   src/backends/python/pythonsession.cpp

https://commits.kde.org/cantor/b9233f89861069bad0db8b6a134f6fd2786e806e