Author: Maciej Fijalkowski <[email protected]>
Branch:
Changeset: r59633:598df76ebabd
Date: 2012-12-31 11:44 +0200
http://bitbucket.org/pypy/pypy/changeset/598df76ebabd/
Log: add a not-so-useful so far helper
diff --git a/pypy/rlib/objectmodel.py b/pypy/rlib/objectmodel.py
--- a/pypy/rlib/objectmodel.py
+++ b/pypy/rlib/objectmodel.py
@@ -299,6 +299,10 @@
hop.exception_cannot_occur()
return hop.inputconst(lltype.Bool, hop.s_result.const)
+def int_to_bytearray(i):
+ # XXX this can be made more efficient in the future
+ return bytearray(str(i))
+
# ____________________________________________________________
class FREED_OBJECT(object):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit