On Fri, Dec 20, 2013, at 10:16, dec...@msn.com wrote:
> The second time we type print type y, how does the program knows which
> one of the y's it refers to ?  Is the first y object deleted ?

y does not refer to the first object anymore after you've assigned the
second object to it. In CPython, if there are no other references to the
string object, yes it is deleted - other implementations may defer
deletion to a later time.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to