]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
backport jhylton's checkin of
authorMichael W. Hudson <mwh@python.net>
Mon, 11 Mar 2002 10:11:46 +0000 (10:11 +0000)
committerMichael W. Hudson <mwh@python.net>
Mon, 11 Mar 2002 10:11:46 +0000 (10:11 +0000)
commit244ca00bf084d17d8d1364458cfcd8b4ece4837e
tree3e1b6b385ac749a8f8f1230e55ad9b4b9b9255b3
parent7ac030322ffa51990f5804531ed7ae6a6b6e38c4
backport jhylton's checkin of
    revision 2.97 of abstract.c

Fix for SF bug 516727: MyInt(2) + "3" -> NotImplemented

PyNumber_Add() tries the nb_add slot first, then falls back to
sq_concat.  However, it didn't check the return value of sq_concat.
If sq_concat returns NotImplemented, raise the standard TypeError.
Objects/abstract.c