[pypy-dev] special methods
Christian Tismer
tismer at stackless.com
Thu Mar 29 01:14:03 CEST 2007
On 28.03.2007, at 22:38, Christian Tismer wrote:
>
> I thing we *always* can call the object's __str__ method if it
> is RPython code.
> What needs to be added is a handler routine. It must be registered
> as a function that specializes on the type of its argument. This
> way it will be the right __str__ call for every type.
>
> ciao -- chris
>
correction:
I think some special casing is necessary because we don't use
the __str__ lookup for builtin types, ASFAIK.
The rest probably holds. Maybe I give it a whirl,
tomorrow.
g'night - chris
More information about the Pypy-dev
mailing list