[pypy-dev] Support for __getitem__ in rpython?

Antonio Cuni anto.cuni at gmail.com
Tue Dec 23 15:59:37 CET 2008


Paolo Giarrusso wrote:

> There are at least two ways, once you have a singleton (maybe static)
> None object around:
> - box all integers and use only pointers - the slow one;
> - tagged integers/pointers that you already use elsewhere. So integers
> of up to 31/63 bits get represented directly, while the other ones are
> through pointers.

I think you are confusing level: here we are talking about RPython, i.e. the 
language which our Python interpreter is implemented in.  Hence, RPython ints 
are really like C ints, and you don't want to manipulate C ints as tagged 
pointer, do you?

ciao,
Anto




More information about the Pypy-dev mailing list