[pypy-dev] Re: die cpythonobject, die!

Michael Hudson mwh at python.net
Wed Jul 14 15:56:32 CEST 2004

Michael Hudson <mwh at python.net> writes:

> Well, I think that could work but I'd prefer a solution with less
> special casing.
> How does CPython avoid the same problem?

Well, that's fairly easy.  In PyPy almost every callable is a Function
or Method, hence has a __get__:

>>>> types.MethodType.im_func.__get__.__get__.__get__.__get__.__get__.__get__
<method object at 0x4062ec8c>

Hum, not sure what to do about that...


  surely, somewhere, somehow, in the history of computing, at least
  one manual has been written that you could at least remotely
  attempt to consider possibly glancing at.              -- Adam Rixey

More information about the Pypy-dev mailing list