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
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
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
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