Re: [Python-3000] Get rid of Py_FindMethod

2008-07-10 Thread Oren Tirosh
The primary use of Py_FindMethod was to implement a tp_getattr slot handler. Now that it has been removed, there is nothing remaining in the py3k codebase that actually uses the tp_getattr slot! It has been 12 years since tp_getattro was introduced. Is it time to finally phase out tp_getattr? Ore

Re: [Python-3000] Get rid of Py_FindMethod

2008-07-05 Thread Collin Winter
On Tue, Jul 1, 2008 at 10:06 AM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On Tue, Jul 1, 2008 at 5:37 AM, Amaury Forgeot d'Arc <[EMAIL PROTECTED]> > wrote: >> http://bugs.python.org/issue3247 complains that with python 3.0, dir() >> of a SRE_Match object returns an empty list. >> >> This type

Re: [Python-3000] Get rid of Py_FindMethod

2008-07-01 Thread Guido van Rossum
On Tue, Jul 1, 2008 at 5:37 AM, Amaury Forgeot d'Arc <[EMAIL PROTECTED]> wrote: > http://bugs.python.org/issue3247 complains that with python 3.0, dir() > of a SRE_Match object returns an empty list. > > This type has the particularity to not define a tp_methods; instead, > its tp_getattr slot call

[Python-3000] Get rid of Py_FindMethod

2008-07-01 Thread Amaury Forgeot d'Arc
Hello, http://bugs.python.org/issue3247 complains that with python 3.0, dir() of a SRE_Match object returns an empty list. This type has the particularity to not define a tp_methods; instead, its tp_getattr slot calls Py_FindMethod(match_methods, self, name) where "match_methods" is a PyMethodDef