[Python-3000] Making more effective use of slice objects in Py3k

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Sep 2 02:10:55 CEST 2006


Talin wrote:

> So for example, any string operation which produces a subset of the 
> string (such as partition, split, index, slice, etc.) will produce a 
> string of the same width as the original string.

It might be possible to represent it in a narrower format,
however. Perhaps there should be an explicit operation for
re-packing a string into the narrowest possible format?
Or should one simply encode it as UTF-8 or something and
then decode it again to get the same effect?

--
Greg


More information about the Python-3000 mailing list