[Python-Dev] Slice as a copy... by design?

Oleg Broytmann phd at phd.pp.ru
Thu May 22 17:54:12 CEST 2008


On Thu, May 22, 2008 at 12:28:47PM -0300, Facundo Batista wrote:
> considering that strings
> are immutable, why a slice of a string is a copy and not a reference
> to a part of that string.

   I remember some discussions... let me see... google to help... aha:

http://mail.python.org/pipermail/python-3000/2006-August/003224.html
http://mail.python.org/pipermail/python-3000/2006-August/003242.html

   2006, August... I don't remember what was the resolution of the
discussion.

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.


More information about the Python-Dev mailing list