![](https://secure.gravatar.com/avatar/4d021a1d1319f36ad861ebef0eb5ba44.jpg?s=120&d=mm&r=g)
2 Dec
2002
2 Dec
'02
9:33 a.m.
On 2 Dec 2002, Konrad Hinsen wrote:
Joachim Saul <list@jsaul.de> writes:
But what if I create a reference to foo.bar, and later delete foo, i.e.
b = foo.bar del foo
Now the data pointer in b refers to freed data! In the mentioned
Forgive me for jumping in. But why should the data be deleted when you do this? Shouldn't del foo merely decrease the reference count of foo.bar? Because there are still outstanding references to foo.bar (i.e. b) then the data itself shouldn't be freed. Perhaps I don't understand the question well enough. -Travis