[issue13532] In IDLE, sys.stdout.write and sys.stderr can write any pickleable object

Senthil Kumaran report at bugs.python.org
Mon Mar 12 05:18:49 CET 2012


Senthil Kumaran <senthil at uthcode.com> added the comment:

Just a minor comment on the patch - It should be %r instead of %s.

-            raise TypeError('must be str, not %s' % type(s))
+            raise TypeError('must be str, not %r' % type(s))

If there is any test for this, it could be added. I find this approach 'OK'.

----------
nosy: +orsenthil

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


More information about the Python-bugs-list mailing list