Eric V. Smith added the comment:

strings are unaware of any ANSI escape sequences or other structure that is 
being ascribed to their contents.

The '\033' escape character is being counted, as are the rest of the characters 
in that string. Since the string is already at least 10 characters long, 
.center(10) returns the original string.

----------
nosy: +eric.smith
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24574>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to