[Microbit-Python] How does GC work in micro:bit MicroPython?
Larry Hastings
larry at hastings.org
Mon Oct 12 09:08:06 CEST 2015
I don't see any registration for gc finalizers. No __del__ anywhere.
So how do objects get cleaned up?
For example, the constructor for microbit.Image creates a "new
MicroBitImage()" object. Where is this object deleted?
Does it just walk the /entire/ heap, use a heuristic to find things that
"look" like pointers, and recycle anything that it believes isn't reachable?
//arry/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/mailman/private/microbit/attachments/20151012/69c2cc49/attachment.html>
More information about the Microbit
mailing list