mdp-toolkit/mdp-toolkit — Issue #1: incorrect (obsolete) del statements?
Author: yarikoptic
Created: 2011-12-21 23:28:30+00:00
State: open

just got a surprise while testing pymvpa locally:

```
File "/home/yoh/proj/pymvpa/pymvpa/debian/tmp/usr/lib/python2.6/dist-packages/mvpa2/base/externals.py", line 99, in __assign_mdp_version
import mdp
File "/usr/lib/python2.6/dist-packages/mdp/__init__.py", line 165, in
import nodes
File "/usr/lib/python2.6/dist-packages/mdp/nodes/__init__.py", line 55, in
del convolution_nodes
NameError: name 'convolution_nodes' is not defined
```

and looking at the code saw:

```
if numx_description == 'scipy':
from convolution_nodes import Convolution2DNode
__all__ += ['Convolution2DNode']
del convolution_nodes
```

my wild guess that it it used to be importing convolution_nodes as a whole and del was supposed to clean up the space....