Reputation: 35331
The post's title says it all.
AFAICT, neither the fine manual nor the Python DB API says anything at all about, or pertaining to, sqlite3.connection.__init__
. Please correct me if I'm wrong!
(I find it inexplicable that such a gaping hole in the documentation could have persisted as long as this.)
Also, AFAICT this method is not implemented in Python, so looking at the Python source for it is not an option.
Finally,
In [2]: import inspect
In [3]: inspect.getmro(sqlite3.Connection)
Out[3]: (sqlite3.Connection, object)
IOW, the class's superclass (object
) sheds no light on the question.
Upvotes: 1
Views: 221
Reputation: 532303
Don't create the connection object manually. Use sqlite3.connect
instead. The __init__
method itself should be considered an implementation detail, rather than something to be used directly.
Upvotes: 1