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 oscarbenjamin
Recipients Claudiu.Popa, oscarbenjamin, rhettinger, serhiy.storchaka
Date 2013-09-08.20:16:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAHVvXxQ+bQeNPtJQ76-jGxsJTKZhBCSWPyF=5gPhZsQLua8veg@mail.gmail.com>
In-reply-to <1378667700.26.0.114538791872.issue18821@psf.upfronthosting.co.za>
Content
Thank you Claudiu very much for writing a patch; I was expecting to
have to do that myself!

Serhiy, you're right groupby is a better fit for this. It does mean a
bit of reworking for the (more complicated) sum function I'm working
on but I've just checked with timeit and it performs very well using
the type function as a predicate. I think it might make the function a
few times faster than takewhile in my common cases for reasons that
are particular to this problem.

Raymond, thanks for taking the time to consider this. I agree that it
should now be closed.
History
Date User Action Args
2013-09-08 20:16:04oscarbenjaminsetrecipients: + oscarbenjamin, rhettinger, Claudiu.Popa, serhiy.storchaka
2013-09-08 20:16:03oscarbenjaminlinkissue18821 messages
2013-09-08 20:16:03oscarbenjamincreate