Brett Cannon <> added the comment:

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
 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 `` 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 `` is set in `__init__()` and there's no use of `del` or 
`delattr()` that would cause this.


Python tracker <>
Python-bugs-list mailing list

Reply via email to