[issue24492] using custom objects as modules: AttributeErrors new in 3.5

Brett Cannon report at bugs.python.org
Mon Aug 10 01:40:00 CEST 2015


Brett Cannon added the comment:

Here is a patch that adds a test, fixes the issue, and for good measure stops assuming that __name__ will always be a string.

----------
keywords: +patch
stage: needs patch -> patch review
Added file: http://bugs.python.org/file40154/issue24492.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24492>
_______________________________________


More information about the Python-bugs-list mailing list