[pypy-issue] [issue1137] "TypeError: 'int32' has no length"

Fijal tracker at bugs.pypy.org
Sat May 5 10:25:47 CEST 2012


Fijal <fijall at gmail.com> added the comment:

Review - please use PEP8 (no except: pass in one line). Also, is it really smart 
to catch all the exceptions? I bet we want to catch only OperationError and even 
so, not all of them. For example this:

class A(object):
    def __index__(self):
        1/0

[1, 2, 3][A()]

raises ZeroDivisionError as expected

----------
nosy: +fijal

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


More information about the pypy-issue mailing list