[pypy-commit] extradoc extradoc: print the address of the function

antocuni noreply at buildbot.pypy.org
Wed Jun 22 18:29:30 CEST 2011


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: extradoc
Changeset: r3773:323338533f37
Date: 2011-06-22 18:34 +0200
http://bitbucket.org/pypy/extradoc/changeset/323338533f37/

Log:	print the address of the function

diff --git a/talk/ep2011/talk/ctypesbench.py b/talk/ep2011/talk/ctypesbench.py
--- a/talk/ep2011/talk/ctypesbench.py
+++ b/talk/ep2011/talk/ctypesbench.py
@@ -16,6 +16,8 @@
         i += 1
     end = time.clock()
     print 'total:', end-start
+    if hasattr(pow, '_ptr'):
+        print 'address:', pow._ptr.getaddr()
     return res
 
 


More information about the pypy-commit mailing list