Staging
v0.8.1
https://github.com/python/cpython
Revision 244ca00bf084d17d8d1364458cfcd8b4ece4837e authored by Michael W. Hudson on 11 March 2002, 10:11:46 UTC, committed by Michael W. Hudson on 11 March 2002, 10:11:46 UTC
    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.
1 parent 7ac0303
History
Tip revision: 244ca00bf084d17d8d1364458cfcd8b4ece4837e authored by Michael W. Hudson on 11 March 2002, 10:11:46 UTC
backport jhylton's checkin of
Tip revision: 244ca00
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.cvsignore -rw-r--r-- 109 bytes
.hgtags -rw-r--r-- 2.1 KB
LICENSE -rw-r--r-- 12.1 KB
Makefile.pre.in -rw-r--r-- 25.9 KB
PLAN.txt -rw-r--r-- 14.1 KB
README -rw-r--r-- 39.6 KB
acconfig.h -rw-r--r-- 7.5 KB
configure -rwxr-xr-x 209.1 KB
configure.in -rw-r--r-- 54.0 KB
install-sh -rwxr-xr-x 5.5 KB
pyconfig.h.in -rw-r--r-- 19.6 KB
setup.py -rw-r--r-- 34.4 KB

README

back to top