[pypy-issue] [issue944] Magic method exceptions
tracker at bugs.pypy.org
Tue Nov 29 02:17:32 CET 2011
New submission from Gordon Ball <chronitis at gmail.com>:
Magic methods called directly handle exceptions differently to their operator
l = 
l +=  #works
l += None #TypeError: unsupported operand type(s) for +: 'list' and 'NoneType'
l += None #TypeError
Presumably this is happening somewhere in the objectspace when multimethods are
being set up, but I'm afraid I can't work out where. (The cpython behaviour that
both should produce identical exceptions seems correct).
nosy: chronitis, pypy-issue
title: Magic method exceptions
PyPy bug tracker <tracker at bugs.pypy.org>
More information about the pypy-issue