]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix for SF bug 516727: MyInt(2) + "3" -> NotImplemented
authorJeremy Hylton <jeremy@alum.mit.edu>
Fri, 8 Mar 2002 21:11:37 +0000 (21:11 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Fri, 8 Mar 2002 21:11:37 +0000 (21:11 +0000)
commit6ae6a43a77e3170cc952d182b67533b560eb6dbe
tree2dba62bf2b5dd4e1ce63ff45ca45375469819ffd
parent8acf1e0e01a841183e61e63bf956494a0517ceed
Fix for SF bug 516727: MyInt(2) + "3" -> NotImplemented

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