This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jcon
Recipients benjamin.peterson, ezio.melotti, jcon, pitrou, vstinner
Date 2011-08-22.02:58:59
SpamBayes Score 0.0008124567
Marked as misclassified No
Message-id <1313981941.49.0.99491814096.issue12807@psf.upfronthosting.co.za>
In-reply-to
Content
bytearray() is using a less efficient implementation of split() than its similar friends bytes and unicode.

I added a couple extra checks to return early in {bytes,unicode} split().
 - if length is 0
 - if left strip removed all bytes

Looking at just how similar these 3 implementations are I feel that we could also unify/generalize them into one generic helper implementation and leave the object marshaling up to the type specific methods.
History
Date User Action Args
2011-08-22 02:59:01jconsetrecipients: + jcon, pitrou, vstinner, benjamin.peterson, ezio.melotti
2011-08-22 02:59:01jconsetmessageid: <1313981941.49.0.99491814096.issue12807@psf.upfronthosting.co.za>
2011-08-22 02:59:00jconlinkissue12807 messages
2011-08-22 02:59:00jconcreate