[issue14889] PyBytes_FromObject(bytes_object) creates a new object

2012-05-24 Thread Larry Hastings
Changes by Larry Hastings : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue14889] PyBytes_FromObject(bytes_object) creates a new object

2012-05-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset f8cd75e8a1d6 by Larry Hastings in branch 'default': Issue #14889: PyBytes_FromObject(bytes) now just increfs and returns. http://hg.python.org/cpython/rev/f8cd75e8a1d6 -- nosy: +python-dev ___ Python tra

[issue14889] PyBytes_FromObject(bytes_object) creates a new object

2012-05-24 Thread Larry Hastings
Larry Hastings 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. -- t