[Python-Dev] The "lazy strings" patch

John J Lee jjl at pobox.com
Sun Oct 22 02:04:10 CEST 2006

On Sat, 21 Oct 2006, Mark Roberts wrote:
> If there's a widely recognized argument against this, a link will likely 
> sate my curiosity.

Quoting from Martin v. Loewis earlier on the same day you posted:

I think this specific approach will find strong resistance. It has been
implemented many times, e.g. (apparently) in NextStep's NSString, and
in Java's string type (where a string holds a reference to a character
array, a start index, and an end index). Most recently, it was discussed
under the name "string view" on the Py3k list, see


Traditionally, the biggest objection is that even small strings may
consume insane amounts of memory.


More information about the Python-Dev mailing list