Guido van Rossum added the comment: > >>> len(x) Please print repr(x). That should be safe even if it contains control characters. __________________________________ Tracker <report at bugs.python.org> <http://bugs.python.org/issue1667> __________________________________