From 4e9977a5d218e249d64e294840abd21d31b0fc65 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Thu, 17 Sep 2009 17:28:19 -0400 Subject: [PATCH] further gc links --- special-method-names.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/special-method-names.html b/special-method-names.html index e497e42..f53c9c9 100644 --- a/special-method-names.html +++ b/special-method-names.html @@ -815,7 +815,7 @@ def __exit__(self, *args): MyABC.__subclasshook__(C) -

* Exactly when Python calls the __del__() special method is incredibly complicated. To fully understand it, you need to know how Python keeps track of objects in memory. Here’s a good article on Python garbage collection and how it relates to class destructor methods. You should also read about weak references, the weakref module, and probably the gc module for good measure. +

* Exactly when Python calls the __del__() special method is incredibly complicated. To fully understand it, you need to know how Python keeps track of objects in memory. Here’s a good article on Python garbage collection and class destructors. You should also read about weak references, the weakref module, and probably the gc module for good measure.

Further Reading