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 tim.peters
Recipients tim.peters
Date 2013-11-03.04:29:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1383452956.07.0.644121763839.issue19481@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-11-03 04:29:16tim.peterssetrecipients: + tim.peters
2013-11-03 04:29:16tim.peterssetmessageid: <1383452956.07.0.644121763839.issue19481@psf.upfronthosting.co.za>
2013-11-03 04:29:15tim.peterslinkissue19481 messages
2013-11-03 04:29:15tim.peterscreate