Message2806

Author pjenvey
Recipients
Date 2007-08-31.19:52:31
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Actually, returning NotImplemented here is inline with pypy

PyPy 1.0.0 in StdObjSpace on top of Python 2.5.1 (startuptime: 11.98 secs)
>>>> 'abc'.__mul__('')
NotImplemented

The test that fails with this patch applied:

        self.checkraises(TypeError, 'abc', '__mul__', '')

pypy modifies this to:

        self.checkopraises(TypeError, operator.mul, 'abc', '')

which we'd pass
History
Date User Action Args
2008-02-20 17:18:46adminlinkissue1775078 messages
2008-02-20 17:18:46admincreate