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 brett.cannon
Recipients brett.cannon, jcdlr, om364@, terry.reedy
Date 2018-04-12.16:36:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1523550964.27.0.682650639539.issue33065@psf.upfronthosting.co.za>
In-reply-to
Content
Without knowing the exact Python version it's hard to tell as line 59 changed between Python 3.5 and where Python 3.6 is now (FYI, the line as it currently sits in Python 3.6 is https://github.com/python/cpython/blob/e98e3385f2acfc6d98f70f8e66c96b752d003b8f/Lib/importlib/_bootstrap.py#L59). But the double-reporting of the same line is a bit odd.

The best I can think of is that IDLE is requesting the __repr__() of `self` while still executing `__init__()` but before `self.name` is set, triggering an AttributeError (although those lines don't exactly line up with that). Otherwise looking at the code for _ModuleLock suggests this really shouldn't happen as `self.name` is set in `__init__()` and there's no use of `del` or `delattr()` that would cause this.
History
Date User Action Args
2018-04-12 16:36:04brett.cannonsetrecipients: + brett.cannon, terry.reedy, jcdlr, om364@
2018-04-12 16:36:04brett.cannonsetmessageid: <1523550964.27.0.682650639539.issue33065@psf.upfronthosting.co.za>
2018-04-12 16:36:04brett.cannonlinkissue33065 messages
2018-04-12 16:36:04brett.cannoncreate