[Python-3000] Method descriptors

Christian Heimes lists at cheimes.de
Sat Dec 8 19:28:10 CET 2007


Marcin ‘Qrczak’ Kowalczyk wrote:
>    BTW, applying PyMethod_Type to 3 arguments crashes Python3. I think
>    this line is the culprit (classobject.c):
> 
>         if (!PyArg_UnpackTuple(args, "method", 2, 3,
>                               &func, &self))
> 
>    Should be 2 instead of 3. There used to be an extra parameter.

Thanks for the hint. I've fixed the bug in r59428.

Christian


More information about the Python-3000 mailing list