[Python-3000] _heapq.c, etc. (was Re: Heaptypes)
Guido van Rossum
guido at python.org
Fri Jul 20 20:25:40 CEST 2007
On 7/20/07, Blake Winton <bwinton at latte.ca> wrote:
> Guido van Rossum wrote:
> >> While the pickle/cPickle, StringIO/cStringIO, etc., naming can be
> >> a bit annoying, it does give me the choice whether I want it to be
> >> fast or flexible.
> > I definitely *don't* want to continue the old habit of having a slow
> > and a fast module with different names; the experience with especially
> > cPickle and cStringIO is that everyone believes their code is
> > performance critical and hence uses the C version if it exists,
> > thereby repeating the same idiom over and over.
> Until they need to turn Unicode strings into file-like objects, at which
> point they go back to StringIO. (Why yes, I was recently bitten by that
> particular "restriction". :)
Py3k will have separate BytesIO and StringIO classes (both in the io
module). The accelerations, if any, will be transparent. Subclasses or
usage depending on implementation details however are not supported.
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-3000