[issue19481] IDLE hangs while printing instance of Unicode subclass

Tim Peters report at bugs.python.org
Sun Nov 3 05:29:16 CET 2013


New submission from Tim Peters:

This showed up on StackOverflow:

http://stackoverflow.com/questions/19749757/print-is-blocking-forever-when-printing-unicode-subclass-instance-from-idle

They were using 32-bit Python 2.7.5 on Windows 7; I reproduced using the same Python on Windows Vista.  To reproduce, open IDLE, and enter

>>> class Foo(unicode):
        pass
>>> foo = Foo('bar')
>>> print foo

IDLE hangs then, and Ctrl+C is ignored.  Stranger, these variants do *not* hang:

>>> foo
>>> print str(foo)
>>> print repr(foo)

Those all work as expected.  Cute :-)

And none of these hang in a DOS-box session.

----------
components: IDLE
messages: 201991
nosy: tim.peters
priority: normal
severity: normal
status: open
title: IDLE hangs while printing instance of Unicode subclass
versions: Python 2.7

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


More information about the Python-bugs-list mailing list