[pypy-svn] r51591 - pypy/dist/pypy/lib/_ctypes
fijal at codespeak.net
fijal at codespeak.net
Mon Feb 18 17:05:07 CET 2008
Author: fijal
Date: Mon Feb 18 17:05:07 2008
New Revision: 51591
Modified:
pypy/dist/pypy/lib/_ctypes/union.py
Log:
update union, so there are no complaints regarding missing attributes
in __del__
Modified: pypy/dist/pypy/lib/_ctypes/union.py
==============================================================================
--- pypy/dist/pypy/lib/_ctypes/union.py (original)
+++ pypy/dist/pypy/lib/_ctypes/union.py Mon Feb 18 17:05:07 2008
@@ -88,5 +88,5 @@
def __del__(self):
if self._needs_free:
self._buffer.free()
- self._buffer = None
- self._needs_free = False
+ self.__dict__['_buffer'] = None
+ self.__dict__['_needs_free'] = False
More information about the Pypy-commit
mailing list