Issue #19481: print() of string subclass instance in IDLE no more hangs.