wrote in news:mailman.216.1253565002.2807.python-l...@python.org in 
comp.lang.python:

>>Niether of the CPython versions (2.5 and 3.0 (with modified code))
>>exibited any memory increase between "allocated 1 meg + " and "end"
> 
> You bumped into a special case that CPython optimizes.  s[:] is s.  If 
> you repeat your test with s[1:], you'll see memory climb as one might 
> normally expect.
> 

Thanks for the correction (to Jack also)

Rob.
-- 
http://www.victim-prime.dsl.pipex.com/
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to