]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
* Include/classobject.h, Objects/classobject.c, Python/ceval.c:
authorGuido van Rossum <guido@python.org>
Wed, 28 Sep 1994 15:51:32 +0000 (15:51 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 28 Sep 1994 15:51:32 +0000 (15:51 +0000)
commit03093a248d4ef3af23a5906dea276c01e0c1ae2c
treef58e5149812f94b2df57e1be321f227a5236ead6
parent2929527aede2eab56d39cf5f5244f997479cfe9d
* 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?)
Objects/classobject.c
Objects/floatobject.c
Objects/longobject.c
Objects/rangeobject.c
Objects/stringobject.c
Objects/xxobject.c