I have made a RPython replacement for struct pack/unpack that could go in rlib. It is not a drop in replacement, and for some reason i can't get long to work, but for simple packing and unpacking it will work. Posted the code on my blog if anybody ever runs into the same problem: http://pyppet.blogspot.com/2010/08/rpython-struct.html
--- On Tue, 8/10/10, Antonio Cuni <[email protected]> wrote: > From: Antonio Cuni <[email protected]> > Subject: Re: [pypy-dev] rstruct where is pack? > To: "Benjamin Peterson" <[email protected]> > Cc: "Hart's Antler" <[email protected]>, [email protected] > Date: Tuesday, 10 August, 2010, 6:32 AM > On 10/08/10 15:14, Benjamin Peterson > wrote: > > 2010/8/10 Hart's Antler <[email protected]>: > >> Seems like struct.pack is not RPython? I see > the examples for unpack in the tests folder, but not for > packing. > > > > struct.pack() is implemented in pypy/module/rstruct/. > > I suppose you mean pypy/module/struct. > > But if the OP is looking for an rpython lib to use in his > rpython program, > this is not exactly what he looks for, although I agree it > could be adapted > and ported to rlib. > > ciao, > Anto > _______________________________________________ [email protected] http://codespeak.net/mailman/listinfo/pypy-dev
