[pypy-issue] [issue1309] rbigint support for from/tobytes

Kenny Levinsen tracker at bugs.pypy.org
Fri Nov 2 12:39:27 CET 2012

Kenny Levinsen <kennylevinsen at gmail.com> added the comment:

pjenvey: Thanks for the feedback! Had a DO'H moment or 2 after seeing your 
patch... ;)

However, using space.wrap() instead of manually constructing a new 
W_StringObject threw some complaints about non-ASCII characters, so I went back 
to StringObject temporarily (but should probably do a proper allocation into 

Is there a way to make the wrapper accept non-ascii bytestring, or is the manual 
allocation the solution?

I have sign support running in interpreted mode - I have a few translation 
issues to solve, but it'll be done today. I think. (flowing errors)

(I shed a few tears as to how much more complicated my tobytes function 
became... :'( )

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list