1
Eine Python-Klasse A:GC in Python: Was wird das verhalten?
a = A()
array.append(a)
... einig Operation ein Verfahren bs auslöst()
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...
Ich nehme an, das ist nach 'del a' auch? – Thomas
Was versuchen Sie eigentlich? Der Garbage Collector ist normalerweise nicht beobachtbares Verhalten. – SingleNegationElimination
Warum kümmert es dich, wenn etwas Müll gesammelt wird? –