John O'Connor <tehj...@gmail.com> added the comment:

Moved {l,r,}strip to stringlib as well as the bloom filters from unicodeobject. 
I think it cleans things up nicely. Now there is one implementation for all 3 
types. This patch also improves performance for bytearray and slightly for 
bytes. I see no delta for unicodeobject.

Added a test case for the mistake I made before (returning inc ref for mutable 
type).

grep -R couldn't find any other references to _PyUnicode_XStrip so I removed 
it. Though, someone with better knowledge of this should confirm.

----------
Added file: http://bugs.python.org/file23124/stringlib_strip.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12807>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to