py.user <port...@yandex.ru> added the comment: all other methods support it and it's right
>>> barr = bytearray(b'abcd*') >>> barr.center(len(barr) * 4, barr[-1:]) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: must be a byte string of length 1, not bytearray >>> b = b'abcd*' >>> b.center(len(b) * 4, b[-1:]) b'*******abcd*********' >>> ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12380> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com