[pypy-commit] pypy default: add some info "we're in re" or "we're in numpy"

fijal noreply at buildbot.pypy.org
Tue Dec 27 16:09:42 CET 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r50906:ff4589dda2b1
Date: 2011-12-27 17:09 +0200
http://bitbucket.org/pypy/pypy/changeset/ff4589dda2b1/

Log:	add some info "we're in re" or "we're in numpy"

diff --git a/pypy/module/micronumpy/signature.py b/pypy/module/micronumpy/signature.py
--- a/pypy/module/micronumpy/signature.py
+++ b/pypy/module/micronumpy/signature.py
@@ -7,7 +7,7 @@
 
 def new_printable_location(driver_name):
     def get_printable_location(shapelen, sig):
-        return sig.debug_repr() + ' [%d dims,%s]' % (shapelen, driver_name)
+        return 'numpy ' + sig.debug_repr() + ' [%d dims,%s]' % (shapelen, driver_name)
     return get_printable_location
 
 def sigeq(one, two):
diff --git a/pypy/rlib/rsre/rsre_jit.py b/pypy/rlib/rsre/rsre_jit.py
--- a/pypy/rlib/rsre/rsre_jit.py
+++ b/pypy/rlib/rsre/rsre_jit.py
@@ -22,7 +22,7 @@
                     info = '%s/%d' % (info, args[debugprint[2]])
             else:
                 info = ''
-            return '%s%s %s' % (name, info, s)
+            return 're %s%s %s' % (name, info, s)
         #
         self.get_printable_location = get_printable_location
 


More information about the pypy-commit mailing list