[pywin32-checkins] pywin32/Pythonwin/pywin/mfc object.py, 1.3.4.1, 1.3.4.2
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-12-09 07:49:31
|
Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/mfc In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv18450/Pythonwin/pywin/mfc Modified Files: Tag: py3k object.py Log Message: Don't delegate to __ methods, avoiding recursion to death in __repr__ etc Index: object.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/mfc/object.py,v retrieving revision 1.3.4.1 retrieving revision 1.3.4.2 diff -C2 -d -r1.3.4.1 -r1.3.4.2 *** object.py 29 Aug 2008 06:16:42 -0000 1.3.4.1 --- object.py 9 Dec 2008 07:49:25 -0000 1.3.4.2 *************** *** 12,16 **** def __getattr__(self, attr): # Make this object look like the underlying win32ui one. # During cleanup __dict__ is not available, causing recursive death. ! if attr != '__dict__': try: o = self.__dict__['_obj_'] --- 12,16 ---- def __getattr__(self, attr): # Make this object look like the underlying win32ui one. # During cleanup __dict__ is not available, causing recursive death. ! if not attr.startswith('__'): try: o = self.__dict__['_obj_'] |