Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r68489:ea48ea97deda
Date: 2013-12-19 13:21 -0800
http://bitbucket.org/pypy/pypy/changeset/ea48ea97deda/
Log: fix __repr__
diff --git a/lib-python/3/ctypes/__init__.py b/lib-python/3/ctypes/__init__.py
--- a/lib-python/3/ctypes/__init__.py
+++ b/lib-python/3/ctypes/__init__.py
@@ -359,10 +359,9 @@
self._handle = handle
def __repr__(self):
- return "<%s '%s', handle %x at %x>" % \
- (self.__class__.__name__, self._name,
- (self._handle & (_sys.maxsize*2 + 1)),
- id(self) & (_sys.maxsize*2 + 1))
+ return "<%s '%s', handle %r at 0x%x>" % (
+ self.__class__.__name__, self._name, self._handle,
+ id(self) & (_sys.maxsize * 2 + 1))
def __getattr__(self, name):
if name.startswith('__') and name.endswith('__'):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit