[pypy-issue] [issue1570] list.remove chokes on numpypy types

Oren Tirosh tracker at bugs.pypy.org
Wed Jul 31 08:30:32 CEST 2013


New submission from Oren Tirosh <orent at hishome.net>:

import numpypy
l=[numpypy.int_(0)]  # or other subclasses of numpypy.number

l.remove(object())
Expected: "ValueError: list.remove(x): x not in list"
Got: "TypeError: expected float, got object object"

l.remove([])
Expected: "ValueError: list.remove(x): x not in list"
Got: No error.

----------
messages: 6015
nosy: orent, pypy-issue
priority: bug
status: unread
title: list.remove chokes on numpypy types

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


More information about the pypy-issue mailing list