Archive for December, 2009

wow, chrome!

Wednesday, December 9th, 2009

well, I just switched my default browser on the Mac to Chrome from Firefox.  About the only thing that I was waiting for was Firebug, and it’s not needed — there are developer tools built right into Chrome.

I’m very impressed.

__del__ and python classes

Thursday, December 3rd, 2009

How could I write Python for 12 years without knowing this?

Objects that have __del__() methods and are part of a reference cycle cause the entire reference cycle to be uncollectable, including objects not necessarily in the cycle but reachable only from it.

Well, I guess that never having __del__ work the way I thought it did has saved me from many nasty memory leaks.  And learning about this has solved another one.  I guess there’s always something new to learn.