[issue1538] Avoid string copy when split char doesn't match

Skip Montanaro report at bugs.python.org
Tue Dec 4 02:03:38 CET 2007


Skip Montanaro added the comment:

I'm not sure why a string subclass shouldn't work, but I've attached a new 
version of the patch that calls PyString_CheckExact() to prevent using a 
string subclass.

Added file: http://bugs.python.org/file8864/string-split.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1538>
__________________________________
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: string-split.patch
Url: http://mail.python.org/pipermail/python-bugs-list/attachments/20071204/2c82337e/attachment.txt 


More information about the Python-bugs-list mailing list