string slicing

Kent Johnson kent3737 at
Sun Dec 5 16:40:49 CET 2004

Ishwor wrote:
> On Sun, 05 Dec 2004 09:44:13 -0500, Kent Johnson <kent3737 at> wrote:
>>This behaviour is due to the way strings are handled. In some cases strings are 'interned' which
>>lets the interpreter keep only a single copy of a string. If you try it with a list you get a
>>different result

> Thanx Kent.  so for lists Python doesn't keep the same object in the
> cache??? 

Right, AFAIK lists are not cached in this way.


More information about the Python-list mailing list