Why does 2.3a2 change "slots" in complex?
Greg Chapman
glc at well.com
Sat Mar 1 12:21:49 EST 2003
On Sat, 01 Mar 2003 17:00:17 GMT, Greg Chapman <glc at well.com> wrote:
>I believe the correct fix would be to change this test:
>
> if (PyComplex_CheckExact(r) && i == NULL)
>
>to this:
>
> if (PyComplex_CheckExact(r) && i == NULL && PyComplex_CheckExact(type))
Make that change to:
if (PyComplex_CheckExact(r) && i == NULL && type == &PyComplex_Type)
---
Greg Chapman
More information about the Python-list
mailing list