Re: [SQLObject] New style classes and __init__ vs _init
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Edmund L. <el...@in...> - 2003-06-03 19:12:17
|
Hi Bud, > I think what I know about this issue, I read from either > in Andrew Kuchlin's What's new in 2.2 > http://www.python.org/doc/2.2.1/whatsnew/ > or in Guido's essay > http://www.python.org/doc/2.2.1/whatsnew/ > > I agree with Ian that every time you call the class, both __new__ and > __init__ of the class are executed. Thanks for the link. I found the discussion I was looking for in: http://www.python.org/2.2/descrintro.html which is what I think your second link was meant to be. I wasn't doubting Ian--just that I couldn't find the discussion. Kuchling doesn't actually talk about it. I completely missed the discussion about this when I first read up on 2.2. Duh. ...Edmund. |