Author: Armin Rigo <[email protected]>
Branch: stmgc-c7
Changeset: r70246:257b3b8fc7a2
Date: 2014-03-24 12:47 +0100
http://bitbucket.org/pypy/pypy/changeset/257b3b8fc7a2/
Log: Obscure annotation hack
diff --git a/pypy/module/__pypy__/interp_atomic.py
b/pypy/module/__pypy__/interp_atomic.py
--- a/pypy/module/__pypy__/interp_atomic.py
+++ b/pypy/module/__pypy__/interp_atomic.py
@@ -55,7 +55,7 @@
'''
if space.config.translation.stm:
from rpython.rlib.rstm import stm_nb_segments
- return space.wrap(stm_nb_segments)
+ return space.wrap(stm_nb_segments + 0) # :-( annotation hack
else:
return space.wrap(1)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit