This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Richard Cooper
Recipients Richard Cooper
Date 2017-03-19.00:09:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1489882196.37.0.503568145678.issue29851@psf.upfronthosting.co.za>
In-reply-to
Content
importlib.reload doesn't work; gives an error about NoneType having no name attribute.

See attached a simple repo testcase

When run it yields the following [disappointing] result.  I'm running Python3.0.6.1 (installed from brew) on OSX 10.12.3

```
iMac:python_package_loader cooper$ python3 bug.py 
module loaded
Traceback (most recent call last):
  File "bug.py", line 14, in <module>
    importlib.reload(sys.modules[moduleName])
  File "/usr/local/Cellar/python3/3.6.0_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/__init__.py", line 166, in reload
    _bootstrap._exec(spec, module)
  File "<frozen importlib._bootstrap>", line 589, in _exec
AttributeError: 'NoneType' object has no attribute 'name'
```
History
Date User Action Args
2017-03-19 00:09:56Richard Coopersetrecipients: + Richard Cooper
2017-03-19 00:09:56Richard Coopersetmessageid: <1489882196.37.0.503568145678.issue29851@psf.upfronthosting.co.za>
2017-03-19 00:09:56Richard Cooperlinkissue29851 messages
2017-03-19 00:09:56Richard Coopercreate