aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2017-08-23 18:21:29 +0200
committerArmin Rigo <arigo@tunes.org>2017-08-23 18:21:29 +0200
commit1151feee68516bf7f3bec9bee870b5694b05f7ec (patch)
treeed87bad676bb39a46a21d5cb6d2c51a9182bd0be /lib-python
parentremove implemented function from stubs (diff)
downloadpypy-1151feee68516bf7f3bec9bee870b5694b05f7ec.tar.gz
pypy-1151feee68516bf7f3bec9bee870b5694b05f7ec.tar.bz2
pypy-1151feee68516bf7f3bec9bee870b5694b05f7ec.zip
(fijal, arigo)
Rename _pypy_dll to __pypy_dll__, so that the custom __getattr__ would raise if the attribute doesn't exist
Diffstat (limited to 'lib-python')
-rw-r--r--lib-python/2.7/ctypes/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib-python/2.7/ctypes/__init__.py b/lib-python/2.7/ctypes/__init__.py
index 0d5db77e3c..c285795de2 100644
--- a/lib-python/2.7/ctypes/__init__.py
+++ b/lib-python/2.7/ctypes/__init__.py
@@ -364,7 +364,7 @@ class CDLL(object):
pypy_dll = _ffi.CDLL(name, mode)
else:
pypy_dll = _ffi.WinDLL(name, mode)
- self._pypy_dll = pypy_dll
+ self.__pypy_dll__ = pypy_dll
handle = int(pypy_dll)
if _sys.maxint > 2 ** 32:
handle = int(handle) # long -> int