Re: [pypy-dev] rstruct where is pack?

2010-08-10 Thread Hart's Antler
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  wrote:

> From: Antonio Cuni 
> Subject: Re: [pypy-dev] rstruct where is pack?
> To: "Benjamin Peterson" 
> Cc: "Hart's Antler" , pypy-dev@codespeak.net
> Date: Tuesday, 10 August, 2010, 6:32 AM
> On 10/08/10 15:14, Benjamin Peterson
> wrote:
> > 2010/8/10 Hart's Antler :
> >> 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
> 



___
pypy-dev@codespeak.net
http://codespeak.net/mailman/listinfo/pypy-dev


Re: [pypy-dev] rstruct where is pack?

2010-08-10 Thread Antonio Cuni
On 10/08/10 15:14, Benjamin Peterson wrote:
> 2010/8/10 Hart's Antler :
>> 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
___
pypy-dev@codespeak.net
http://codespeak.net/mailman/listinfo/pypy-dev


Re: [pypy-dev] rstruct where is pack?

2010-08-10 Thread Benjamin Peterson
2010/8/10 Hart's Antler :
> 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/.



-- 
Regards,
Benjamin
___
pypy-dev@codespeak.net
http://codespeak.net/mailman/listinfo/pypy-dev