Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Okay, that's dodging the object instantiation/destruction thing but it's still doing all the reference counting on them isn't it?


Why would reference counting be necessary an immutable, immortal global?


It isn't, but IIRC refcounting is cooked into the python interpreter in so many places that everything that can be referenced must also be refcounted. If you get a reference to something, you increment its refcount. If you lose the reference, you decrement it. No ifs, no branches.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: