[Python-3000] Introspection broken for objects using Py_FindMethod()

Guido van Rossum guido at python.org
Wed Jul 18 01:52:16 CEST 2007


On 7/17/07, Alexandre Vassalotti <alexandre at peadrop.com> wrote:
> Hi,
>
> It is intentional that the introspection broken for objects using
> Py_FindMethod()? For example:
>
>    Python 3.0x (cpy_merge:56413:56414M, Jul 17 2007, 13:57:23)
>    [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
>    >>> import cPickle
>    >>> dir(cPickle.Unpickler(file))
>    []
>    >>> dir(cPickle.Pickler(file))
>    ['PicklingError', snip...]

Yes, see a thread between me, Georg and Brett around March 7-10:

http://mail.python.org/pipermail/python-3000/2007-March/006061.html

I think the conclusion was to get rid of Py_FindMethod altogether. The
replacement isn't very hard. But it hasn't been done yet.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list