Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 03093a2

Browse files
committed
* Include/classobject.h, Objects/classobject.c, Python/ceval.c:
entirely redone operator overloading. The rules for class instances are now much more relaxed than for other built-in types (whose coerce must still return two objects of the same type) * Objects/floatobject.c: add overflow check when converting float to int and implement truncation towards zero using ceil/float * Objects/longobject.c: change ValueError to OverflowError when converting to int * Objects/rangeobject.c: modernized * Objects/stringobject.c: use HAVE_LIMITS instead of __STDC__ * Objects/xxobject.c: changed to use new style (not finished?)
1 parent 2929527 commit 03093a2

6 files changed

Lines changed: 219 additions & 204 deletions

File tree

0 commit comments

Comments
 (0)