Re: [SQLObject] Hello and Connections (to start)
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Luke O. <lu...@me...> - 2003-03-13 03:59:58
|
There was a semi-decent reason conscious decision not to call parent's init: It's in the parent's init that the pooling info is created. But I suppose that's a smaller price to pay than having things break in the future. I guess my only other thing is that if you agree this is about the way to do this sort of override, that DBAPI's __init__ should be careful about creating too much overhead. :) - Luke Quoting Ian Bicking <ia...@co...>: > This looks like the right way to go about this. You should call the > parent __init__, though. More like: > > def __init__(dsn, debug=0): > PostgresConnection.__init__(dsn, debug=debug) > > Though you don't *really* have to override __init__ at all, except if > you want to disallow non-applicable init arguments. > > Ian > > > |