[Python-Dev] Linus on garbage collection (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Sat May 7 01:25:09 CEST 2011
- Previous message: [Python-Dev] Linus on garbage collection
- Next message: [Python-Dev] Linus on garbage collection
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Neal Becker wrote:
There, Linus says
For example, if you have an explicit refcounting system, then it is quite natural to have operations like ...
notet *node = *np; if (node->count > 1) newnode = copyalloc(node);
It's interesting to note that, even though you can get reference count information in CPython, it's not all that useful for doing things like that, because it's hard to be sure how many incidental references have been created on the way to the code concerned. So tricks like this at the Python level aren't really feasible in any robust way.
-- Greg
- Previous message: [Python-Dev] Linus on garbage collection
- Next message: [Python-Dev] Linus on garbage collection
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]