<br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div> Anyways I'll be done with my patch to add the copying versions of the methods later today. Stay tuned.
</div></div></blockquote><div><br>The PyBytes methods from PEP3137 have been implemented. Review as desired.<br><br><a href="http://bugs.python.org/issue1261">http://bugs.python.org/issue1261</a><br><br>If its good as is, let me know and I can check that in if you don't want to yourself.
<br><br>I believe there are some more opportunities for code sharing between PyString and PyBytes both in methods already existing in stringobject and bytesobject and in some of the Objects/stringlib/transmogrify.h code that this patch adds. I tried to share as much as possible to avoid both bloat and most importantly multiple copies of the same algorithms. That could be considered additional cleanup or optimization.
<br><br>-gps<br></div></div>