[issue33065] IDLE debugger: failure stepping through module loading

Timothy Geiser report at bugs.python.org
Thu Apr 23 18:06:07 EDT 2020


Timothy Geiser <slimshady007 at inbox.lv> added the comment:

Looks good when testing both the minimal example and the pgpdump original case.

I added the import at the top, and changed the original line 173 from

value = repr(value)

to

value = reprlib.repr(value)

This is based on lines 160 & 161 in reprlib (we need a Repr instance, but reprlib makes it's own for us to use).

I get a nice boring and not-crashy result in the debug window for Locals:

data   b''
self   <BinaryData instance at 0x2726a0ab880>

Thanks for the fix, Terry!
I shouldn't expect any strange side-effects from this, should I?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33065>
_______________________________________


More information about the Python-bugs-list mailing list