Re: [Python-Dev] Sandboxed Threads in Python

At 07:17 PM 10/7/2005 -0600, Adam Olsen wrote:
No, it can't. See more below.
No. You're missing my point. If they are able to *reference* these objects, then the garbage collector has to know about it, or else it can't know when to reclaim them. Ergo, these objects will leak, or else extensions will crash when they refer to the deallocated memory. In other words, you can't handwave the whole problem away by assuming "a garbage collector". The garbage collector has to actually be able to work, and you haven't specified *how* it can work without changing the C API.
It allows changes to a supertype's C-level slots to propagate to subclasses.

On 10/7/05, Phillip J. Eby <pje@telecommunity.com> wrote:
Unfortunately the rammifications of your original statement didn't set in until well after I sent my reply. You are right, it does make it impossible without changing the C API, so that much of the idea is dead. I wonder if it would be possible to use a wrapper around the immutable type instead.. something to ponder anyway.
I see. Well, I would have required the supertype to be immutable, so there couldn't be any changes to the C-level slots. -- Adam Olsen, aka Rhamphoryncus
participants (2)
-
Adam Olsen
-
Phillip J. Eby