1
파이썬 클래스 A가 :GC in python :이 동작은 무엇입니까?
a = A()
array.append(a)
... 일부 조작은의 방법 B()
in a.b():
array.remove(self);
# will this make the self be freed? as the only reference has been removed from array.
# access the a's data...
나는 이것이 'del a' 다음에 있다고 가정합니까? – Thomas
실제로 무엇을하려고합니다. 가비지 컬렉터는 처음에는 일반적으로 관찰 가능한 동작이 아닙니다. – SingleNegationElimination
가비지 수집 할 때 왜 신경 쓰나요? –