Author: Richard Plangger <[email protected]>
Branch: py3.5
Changeset: r89519:a372a26b6ec0
Date: 2017-01-12 17:33 +0100
http://bitbucket.org/pypy/pypy/changeset/a372a26b6ec0/

Log:    call int() on ffi.cast("intptr_t", ...) to ensure string formating
        does not throw

diff --git a/lib_pypy/_tkinter/tclobj.py b/lib_pypy/_tkinter/tclobj.py
--- a/lib_pypy/_tkinter/tclobj.py
+++ b/lib_pypy/_tkinter/tclobj.py
@@ -185,7 +185,7 @@
 
     def __repr__(self):
         return "<%s object at 0x%x>" % (
-            self.typename, tkffi.cast("intptr_t", self._value))
+            self.typename, int(tkffi.cast("intptr_t", self._value)))
 
     def __eq__(self, other):
         if not isinstance(other, Tcl_Obj):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to