summaryrefslogtreecommitdiff
path: root/Objects/floatobject.c
AgeCommit message (Collapse)AuthorLines
1995-02-27for MPW __SC__ compilerGuido van Rossum-2/+6
1995-02-13NeXT/Sparc 3.3 fixGuido van Rossum-1/+13
1995-02-10use Py_CHARMASK; and don't check for neg. float to the float power hereGuido van Rossum-5/+1
1995-01-17don't declare fmod/pow for any STDC compilerGuido van Rossum-1/+1
1995-01-04Added 1995 to copyright message.Guido van Rossum-3/+3
floatobject.c: fix hash(). methodobject.c: support METH_FREENAME flag bit.
1995-01-02Lots of minor changes. Note for mappingobject.c: the hash table pointerGuido van Rossum-1/+0
can now be NULL.
1994-09-28 * Include/classobject.h, Objects/classobject.c, Python/ceval.c:Guido van Rossum-2/+17
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?)
1994-08-12New patches by Andrew to fix various problemsGuido van Rossum-5/+24
1994-08-01Merge alpha100 branch back to main trunkGuido van Rossum-25/+54
1993-10-11* Extended X interface: pixmap objects, colormap objects visual objects,Sjoerd Mullender-1/+1
image objects, and lots of new methods. * Added counting of allocations and deallocations of builtin types if COUNT_ALLOCS is defined. Had to move calls to NEWREF down in some files. * Bug fix in sorting lists.
1993-07-05* Makefile: added all: and default: targets.Guido van Rossum-4/+0
* many files: made some functions static; removed "extern int errno;". * frozenmain.c: fixed bugs introduced on 24 June... * flmodule.c: remove 1.5 bw compat hacks, add new functions in 2.2a (and some old functions that were omitted). * timemodule.c: added MSDOS floatsleep version . * pgenmain.c: changed exit() to goaway() and added defn of goaway(). * intrcheck.c: add hack (to UNIX only) so interrupting 3 times will exit from a hanging program. The second interrupt prints a message explaining this to the user.
1993-06-17* Added gmtime/localtime/mktime and SYSV timezone globals to timemodule.c.Guido van Rossum-2/+2
Added $(SYSDEF) to its build rule in Makefile. * cgensupport.[ch], modsupport.[ch]: removed some old stuff. Also changed files that still used it... And made several things static that weren't but should have been... And other minor cleanups... * listobject.[ch]: add external interfaces {set,get}listslice * socketmodule.c: fix bugs in new send() argument parsing. * sunaudiodevmodule.c: added flush() and close().
1993-04-07* Microscopic corrections to make things compile on the Cray APP.Guido van Rossum-0/+6
* Removed one use of $> in Makefile and warned about others. Added configurable lines in Makefile to change CC and AR.
1993-03-29* Changed all copyright messages to include 1993.Guido van Rossum-0/+33
* Stubs for faster implementation of local variables (not yet finished) * Added function name to code object. Print it for code and function objects. THIS MAKES THE .PYC FILE FORMAT INCOMPATIBLE (the version number has changed accordingly) * Print address of self for built-in methods * New internal functions getattro and setattro (getattr/setattr with string object arg) * Replaced "dictobject" with more powerful "mappingobject" * New per-type functio tp_hash to implement arbitrary object hashing, and hashobject() to interface to it * Added built-in functions hash(v) and hasattr(v, 'name') * classobject: made some functions static that accidentally weren't; added __hash__ special instance method to implement hash() * Added proper comparison for built-in methods and functions
1993-03-16* Changed many files to use mkvalue() instead of newtupleobject().Guido van Rossum-12/+4
* Fixcprt.py: added [-y file] option, do only files younger than file. * modsupport.[ch]: added vmkvalue(). * intobject.c: use mkvalue(). * stringobject.c: added "formatstring"; renamed string* to string_*; ceval.c: call formatstring for string % value. * longobject.c: close memory leak in divmod. * parsetok.c: set result node to NULL when returning an error.
1992-09-12Made builtins int(), long(), float(), oct() and hex() more generic.Guido van Rossum-0/+32
1992-08-14* classobject.[ch], {float,long,int}object.c, bltinmodule.c:Guido van Rossum-0/+20
coercion is now completely generic. * ceval.c: for instances, don't coerce for + and *; * reverses arguments if left one is non-instance numeric and right one sequence.
1992-04-05Copyright for 1992 addedGuido van Rossum-1/+1
1992-03-27answer lint's complaintsGuido van Rossum-5/+13
1992-01-26Get rid of redundant type checks.Guido van Rossum-53/+26
Define % operator similar to int%int.
1991-12-16Explicitly check for weird values after calling pow().Guido van Rossum-0/+9
1991-12-10Formulate better error strings.Guido van Rossum-5/+5
1991-10-24Added NULL function pointers for shift and mask ops.Guido van Rossum-0/+6
1991-10-20Finally implemented divmod().Guido van Rossum-3/+25
1991-06-07printobject now returns an error codeGuido van Rossum-1/+2
1991-06-04Export float_buf_repr() interface, for marshalling of floats.Guido van Rossum-1/+1
1991-05-28Fix special cases in pow()Guido van Rossum-0/+12
1991-05-14Added nonzero testGuido van Rossum-0/+8
1991-05-05Added (dummy) divmod and (functional) abs.Guido van Rossum-10/+37
Fixed comments in number methods list
1991-02-19Added copyright notice.Guido van Rossum-0/+24
1990-12-20Added <errno.h>Guido van Rossum-0/+5
1990-12-20"Compiling" versionGuido van Rossum-9/+3
1990-11-02Moved prototyes for fmod and pow, and don't use them for THINK C.Guido van Rossum-2/+5
1990-10-30Added some prototypes.Guido van Rossum-2/+2
1990-10-21New errors.Guido van Rossum-20/+25
1990-10-14Initial revisionGuido van Rossum-0/+240