summaryrefslogtreecommitdiffstats
path: root/Objects/floatobject.c
Commit message (Collapse)AuthorAgeFilesLines
* * Makefile: added all: and default: targets.Guido van Rossum1993-07-051-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.
* * Added gmtime/localtime/mktime and SYSV timezone globals to timemodule.c.Guido van Rossum1993-06-171-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().
* * Microscopic corrections to make things compile on the Cray APP.Guido van Rossum1993-04-071-0/+6
| | | | | * Removed one use of $> in Makefile and warned about others. Added configurable lines in Makefile to change CC and AR.
* * Changed all copyright messages to include 1993.Guido van Rossum1993-03-291-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
* * Changed many files to use mkvalue() instead of newtupleobject().Guido van Rossum1993-03-161-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.
* Made builtins int(), long(), float(), oct() and hex() more generic.Guido van Rossum1992-09-121-0/+32
|
* * classobject.[ch], {float,long,int}object.c, bltinmodule.c:Guido van Rossum1992-08-141-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.
* Copyright for 1992 addedGuido van Rossum1992-04-051-1/+1
|
* answer lint's complaintsGuido van Rossum1992-03-271-5/+13
|
* Get rid of redundant type checks.Guido van Rossum1992-01-261-53/+26
| | | | Define % operator similar to int%int.
* Explicitly check for weird values after calling pow().Guido van Rossum1991-12-161-0/+9
|
* Formulate better error strings.Guido van Rossum1991-12-101-5/+5
|
* Added NULL function pointers for shift and mask ops.Guido van Rossum1991-10-241-0/+6
|
* Finally implemented divmod().Guido van Rossum1991-10-201-3/+25
|
* printobject now returns an error codeGuido van Rossum1991-06-071-1/+2
|
* Export float_buf_repr() interface, for marshalling of floats.Guido van Rossum1991-06-041-1/+1
|
* Fix special cases in pow()Guido van Rossum1991-05-281-0/+12
|
* Added nonzero testGuido van Rossum1991-05-141-0/+8
|
* Added (dummy) divmod and (functional) abs.Guido van Rossum1991-05-051-10/+37
| | | | Fixed comments in number methods list
* Added copyright notice.Guido van Rossum1991-02-191-0/+24
|
* Added <errno.h>Guido van Rossum1990-12-201-0/+5
|
* "Compiling" versionGuido van Rossum1990-12-201-9/+3
|
* Moved prototyes for fmod and pow, and don't use them for THINK C.Guido van Rossum1990-11-021-2/+5
|
* Added some prototypes.Guido van Rossum1990-10-301-2/+2
|
* New errors.Guido van Rossum1990-10-211-20/+25
|
* Initial revisionGuido van Rossum1990-10-141-0/+240