Update of /cvsroot/informixdb/informixdb
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15863
Modified Files:
informixdb.py
Log Message:
It's probably safer to update self.__dict__ than blatantly replacing it.
Index: informixdb.py
===================================================================
RCS file: /cvsroot/informixdb/informixdb/informixdb.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** informixdb.py 17 Nov 2005 02:24:22 -0000 1.13
--- informixdb.py 17 Nov 2005 21:26:23 -0000 1.14
***************
*** 48,52 ****
class Row(object):
! def __init__(self, d): self.__dict__ = d
def __repr__(self): return repr(self.__dict__)
def __str__(self): return str(self.__dict__)
--- 48,52 ----
class Row(object):
! def __init__(self, d): self.__dict__.update(d)
def __repr__(self): return repr(self.__dict__)
def __str__(self): return str(self.__dict__)
|