[Python-Dev] newimp.py

Charles G Waldman cgw@fnal.gov
Wed, 6 Sep 2000 09:31:11 -0500 (CDT)


Installing the brand-new 2.0b1 I see this:

Compiling /usr/lib/python2.0/newimp.py ...
  File "/usr/lib/python2.0/newimp.py", line 137
    envDict[varNm] = val
                        ^
And attempting to import it gives me:

Python 2.0b1 (#14, Sep  6 2000, 09:24:44) 
[GCC 2.96 20000905 (experimental)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> import newimp
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.0/newimp.py", line 1567, in ?
    init()
  File "/usr/lib/python2.0/newimp.py", line 203, in init
    if (not aMod.__dict__.has_key(PKG_NM)) or full_reset:
AttributeError: 'None' object has no attribute '__dict__'

This code was last touched on 1995/07/12.  It looks defunct to me.
Should it be removed from the distribution or should I spend the time
to fix it?