[issue14889] PyBytes_FromObject(bytes_object) creates a new object

Larry Hastings report at bugs.python.org
Fri May 25 07:41:44 CEST 2012


Larry Hastings <larry at hastings.org> added the comment:

Changing the name of the report to accurately reflect reality.  If you passed in a bytes object, PyBytes_FromObject would create a new object, when all it really needed to do was incref and return.  My checkin in a minute will add that shortcut.

----------
title: PyBytes_FromObject(bytes_object) fails -> PyBytes_FromObject(bytes_object) creates a new object

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14889>
_______________________________________


More information about the Python-bugs-list mailing list