[pypy-issue] [issue1107] [cpyext] sq_contains slot allows returning non-bool value

Stefan Behnel tracker at bugs.pypy.org
Mon Apr 2 09:40:24 CEST 2012


New submission from Stefan Behnel <stefan_ml at behnel.de>:

Cython's tests "bishop2" and "kostyrka" fail. They return the values 1 and 42
respectively from the sq_contains function of an extension type. CPython
converts them to the corresponding boolean value (i.e. True for non-0), PyPy
returns the value unchanged, i.e. a test like "99 in obj" returns 42 instead of
True.

----------
messages: 4169
nosy: pypy-issue, sbehnel
priority: bug
status: unread
title: [cpyext] sq_contains slot allows returning non-bool value

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1107>
________________________________________


More information about the pypy-issue mailing list