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-24.22:53:52
SpamBayes Score 2.5266884e-09
Marked as misclassified No
Message-id <CABCbifVcvAUz-tpVB-6FiN6PprR0rr9FzZJGjMeyqW7h+BTJwQ@mail.gmail.com>
In-reply-to <1314192733.43.0.923458063158.issue12807@psf.upfronthosting.co.za>
Content
You are right about those lines in particular; 'dubious' as you say.
Though, the point overall was that the general implementation was noticeably
faster (regardless of those smaller changes).

However, I do think that the single check for len == 0 saves time
particularly
from do_xstrip where we call _getbuffer().

I see. I must have been trigger happy.

> > diff -r b5ccdf7c032a Python/bltinmodule.c
> > Binary file Python/bltinmodule.c has changed
>
> Uh, what's this? bltinmodule.c shouldn't be considered a binary file.
> It probably means you added a NUL byte in it by mistake.
>
> I didn't touch that file at all. I'm not sure what that is. :-P

> 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.
>
> You could put it in Objects/stringlib.
>

I figured. I will when I am able to get to it.

- John
Files
File name Uploaded
unnamed jcon, 2011-08-24.22:53:51
History
Date User Action Args
2011-08-24 22:53:52jconsetrecipients: + jcon, pitrou, vstinner, benjamin.peterson, ezio.melotti
2011-08-24 22:53:52jconlinkissue12807 messages
2011-08-24 22:53:52jconcreate