On Jan 21, 11:48 pm, Sean DiZazzo wrote:
> On Jan 21, 8:17 pm, tekion wrote:
>
> > Sean,
> > I did a little investigation, there are other classes besides
> > Connection. So, could I only set up a derived class from Connection
> > and still be able to use the connection to query database and retr
On Jan 21, 8:17 pm, tekion wrote:
> Sean,
> I did a little investigation, there are other classes besides
> Connection. So, could I only set up a derived class from Connection
> and still be able to use the connection to query database and retrieve
> data?
Im not sure I understand you completely.
Sean,
I did a little investigation, there are other classes besides
Connection. So, could I only set up a derived class from Connection
and still be able to use the connection to query database and retrieve
data?
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 21, 8:00 pm, tekion wrote:
> Sean,
> Thanks. This is useful. For future reference, how do I know what
> class is in MySQLdb module?
You have to explore. ;)
I found the MySQLdb module, and looked inside the __init__.py. Then
looked for "connect" and followed the trail.
--
http://mail.
On Jan 21, 5:48 pm, tekion wrote:
> All,
> I am trying to write a class which inherits from MySQLdb class. Below
> is code snippet:
> import MySQLdb
> import sys
>
> class msql_connect(MySQLdb):
> def __init__(self):
> self.host = "hostname"
> self.user = "user"
>
All,
I am trying to write a class which inherits from MySQLdb class. Below
is code snippet:
import MySQLdb
import sys
class msql_connect(MySQLdb):
def __init__(self):
self.host = "hostname"
self.user = "user"
self.password = "passoword"
self.database