]> granicus.if.org Git - python/commit
Issue #14889: PyBytes_FromObject(bytes) now just increfs and returns.
authorLarry Hastings <larry@hastings.org>
Fri, 25 May 2012 05:58:30 +0000 (22:58 -0700)
committerLarry Hastings <larry@hastings.org>
Fri, 25 May 2012 05:58:30 +0000 (22:58 -0700)
commitca28e99202cb31506c071792e463afbcdb5738f4
tree088e14a0fda2cc1ac41a6065f6a97ca7136ca6d1
parent5ed7bd79dfec6b1ef203f022ef662573a93085c4
Issue #14889: PyBytes_FromObject(bytes) now just increfs and returns.
Previously, if you passed in a bytes object, it would create a whole
new object.
Objects/bytesobject.c