Serhiy Storchaka added the comment: No. BytesWarning is related only to bytes and bytearray. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue18758> _______________________________________