Question about garbage collection
Rainer Deyke
root at rainerdeyke.com
Wed Aug 2 21:47:37 EDT 2000
"Neil Schemenauer" <nascheme at news.cnri.reston.va.us> wrote in message
news:slrn8oh12s.2tm.nascheme at spud.cnri.reston.va.us...
> Python 2.0 will come with an optional garbage collector to
> collect cyclic garbage. The impact on performance is not yet
> fully understood which is why it will not be enabled by default.
There are, IMO, better uses for garbage collection technology than automatic
garbage collection called on a timer. How about a function
sys.get_unreferenced which returns a tuple of all existing objects that are
only referenced by other objects in the tuple? This would make a powerful
debugging tool, since it allows the programmer to fix cyclic references at
the source level.
--
Rainer Deyke (root at rainerdeyke.com)
Shareware action/role-playing games - http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor
More information about the Python-list
mailing list