STINNER Victor <victor.stin...@haypocalc.com> added the comment: > the shortcuts were meant for Python internal use only
str.encode() calls PyUnicode_AsEncodedString() and bytes.decode() calls PyUnicode_Decode(), so it is not for internal use only. Eg. "text".encode("ASCII") doesn't use the fastpath. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8922> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com