summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* bltinmodule.c: added round(x, [n]); coerce() of two class instancesGuido van Rossum1993-02-121-1/+30
| | | | | | will try to coerce anyway. classobject.c: instance 'nonzero' should first try __nonzero__ only then __len__.
* * stdwinmodule.c: various new commands: setwin{pos,size},Guido van Rossum1993-02-081-8/+18
| | | | | | | | | | listfontnames, bitmap ops. * listobject.c: use mkvalue() when possible; avoid weird error when calling append() without args. * modsupport.c: new feature in getargs(): if the format string contains a semicolor the string after that is used as the error message instead of "bad argument list (format %s)" when there's an error.
* * ceval.c: ifdef out the last argument passing compat hack.Guido van Rossum1993-02-051-8/+6
| | | | | * Fixed memory leaks in socket, select and sv modules: mkvalue("O", v) does INCREF(v) so if v is brand new it should be XDECREF'd
* * Added Fixcprt.py: script to fix copyright message.Guido van Rossum1993-01-265-17/+53
| | | | | | | | | | | * various modules: added 1993 to copyright. * thread.c: added copyright notice. * ceval.c: minor change to error message for "+" * stdwinmodule.c: check for error from wfetchcolor * config.c: MS-DOS fixes (define PYTHONPATH, use DELIM, use osdefs.h) * Add declaration of inittab to import.h * sysmodule.c: added sys.builtin_module_names * xxmodule.c, xxobject.c: fix minor errors
* Added separate main program for the Mac: macmain.cGuido van Rossum1993-01-211-95/+256
| | | | | | | | | | | | | | | | | | | | | stdwinmodule.c: wsetfont can now return an error Makefile: add CL_USE and CL_LIB*S; config.c: move CL part around New things in imgfile; also in Makefile. longobject.c: fix comparison of negative long ints... [REAL BUG!] marshal.c: add dumps() and loads() to read/write strings timemodule.c: make sure there's always a floatsleep() posixmodule.c: rationalize struct returned by times() Makefile: add test target, disable imgfile by default thread.c: Improved coexistance with dl module (sjoerd) stdwinmodule.c: Change include stdwin.h if macintosh rotormodule.c: added missing last argument to RTR_?_region calls confic.c: merged with configmac.c, added 1993 to copyright message fileobject.c: int compared to NULL in writestring(); change fopenRF ifdef timemodule.c: simplify times() using mkvalue; include myselect.h earlier (for sequent). posixmodule: for sequent, include unistd.h instead of explicit extern definitions and don't define rename() Makefile: change misleading/wrong MD5 comments
* ushdr_t was not defined so fill in its size instead of using sizeof.Sjoerd Mullender1993-01-131-2/+3
|
* Added error checking.Sjoerd Mullender1993-01-131-21/+82
| | | | Improved coexistance with dl module.
* * Makefile: use cp -r to install the libraryGuido van Rossum1993-01-091-1/+1
| | | | | | | | * ceval.c: use #ifdef COMPAT_HACKS instead of #if 0 * Makefile: fix to make clmodule.c compile; make config.o dependent on libpython.a (so date is always correct) * timemodule.c: now sleep() also takes a float argument. * posixmodule.c: added nice().
* Various changes.Sjoerd Mullender1993-01-062-6/+15
| | | | | | | | | | | | | | | * Makefile: svmodule.c.proto and svgen.py are gone, svmodule.c came in their stead. Also, pass -DUSE_DL flag to thread.c and give the user a possibility to add the -DDEBUG to just thread.c. * ceval.c: init_save_thread() can be called more than once now. * svgen.py, svmodule.c.proto, svmodule.c: Removed prototype file and replaced it by the generated file. * thread.c: Added some more checks; added call to DL library when it is also used to tell it where the shared arena is so that DL can use some other area. * threadmodule.c: Call init_save_thread from another place. Also, added new function getlocklock() which does to lock objects what getfilefile does to file objects.
* * Configure.py: use #!/usr/local/bin/pythonGuido van Rossum1993-01-041-3/+6
| | | | | | | | | | | * posixmodule.c: move extern function declarations to top * listobject.c: cmp() arguments must be void* if __STDC__ * Makefile, allobjects.h, panelmodule.c, modsupport.c: get rid of strdup() -- it is a portability risk * Makefile: enclosed ranlib command in parentheses for Sequent Make which aborts if the command is not found even if '-' is present * timemodule.c: time() returns a floating point number, in microsecond precision if BSD_TIME is defined.
* * mymalloc.h: always allocate one extra byte, since some malloc'sGuido van Rossum1992-12-141-0/+4
| | | | | | | | | | | | | return NULL for malloc(0) or realloc(p, 0). (This should be done differently than wasting one byte, but alas...) * Moved "add'l libraries" option in Makefile to an earlier place. * Remove argument compatibility hacks (b) and (c). * Add grey2mono, dither2mono and mono2grey to imageop. * Dup the fd in socket.fromfd(). * Added new modules mpz, md5 (by JH, requiring GNU MP 1.2). Affects Makefile and config.c. * socketmodule.c: added socket.fromfd(fd, family, type, [proto]), converted socket() to use of getargs().
* * classobject.c: in instance_lenth, test result of call_objectGuido van Rossum1992-11-262-0/+4
| | | | | | for exception before using it. Fixed a few other places where the outcome of calling sq_length wasn't tested for exceptions (bltinmodule.c, ceval.c).
* * config.c: Added audioop to lists.Guido van Rossum1992-11-261-1/+32
| | | | | | | | | * Makefile: change default source directory * socketmodule.c: added getsockname and getpeername * bltinmodule.c: corrected typo in type() error message * Added new built-in functions str() and repr(): repr(x) == `x`; str(x) == x if x is a string, otherwise str(x) == repr(x). * Added joinfields to stropmodule.c (string.join calls joinfields now)
* * bltinmodule.c: added built-in function cmp(a, b)Guido van Rossum1992-10-183-4/+77
| | | | | | | | | | | | | | | * flmodule.c: added {do,check}_only_forms to fl's list of functions; and don't print a message when an unknown object is returned. * pythonrun.c: catch SIGHUP and SIGTERM to do essential cleanup. * Made jpegmodule.c smaller by using getargs() and mkvalue() consistently. * Increased parser stack size to 500 in parser.h. * Implemented custom allocation of stack frames to frameobject.c and added dynamic stack overflow checks (value stack only) to ceval.c. (There seems to be a bug left: sometimes stack traces don't make sense.)
* Modified most (but not yet all) I/O to always go through sys.stdout orGuido van Rossum1992-09-255-68/+72
| | | | | | sys.stderr or sys.stdin, and to work with any object as long as it has a write() (respectively readline()) methods. Some functions that took a FILE* argument now take an object* argument.
* Made builtins int(), long(), float(), oct() and hex() more generic.Guido van Rossum1992-09-121-91/+40
|
* Added C++ support in thread.h; don't use signals if not strictlySjoerd Mullender1992-09-111-5/+16
| | | | | necessary, and when they are, use SIGKILL; when compiled with -DDEBUG, only print debug messages when "THREADDEBUG" is set in the environment.
* Give code objects a more useful representation.Guido van Rossum1992-09-031-1/+18
|
* Add some debugging features if DEBUG definedGuido van Rossum1992-09-031-0/+10
| | | | | (fetch the filename as a string so I can see it with dbx, and set f_lineno); call abort() when detecting an "undetected" error.
* Add sys.exitfunc feature. Make askync non-static.Guido van Rossum1992-09-031-1/+20
|
* Add $PYTHONSTARTUP feature.Guido van Rossum1992-09-031-0/+10
|
* Add an optional interface to turn malloc debugging on and off.Guido van Rossum1992-09-031-0/+21
|
* newest versionSjoerd Mullender1992-09-021-91/+0
|
* adapted SV module to the new svideo library.Sjoerd Mullender1992-09-021-0/+91
| | | | update thread package.
* suppress unnecessary error message if too many arguments are passedGuido van Rossum1992-08-271-2/+5
|
* fix *serious* (new) bug in testbool: by default objects should testGuido van Rossum1992-08-191-1/+1
| | | | true, not false!!!
* fix *serious* (new) bug in evalfile: forgot to initialize s!!!Guido van Rossum1992-08-191-0/+1
|
* New thread.c from Sjoerd, supports _exit_prog(). Use this in goaway()Guido van Rossum1992-08-172-90/+229
| | | | to avoid hanging in cleanup().
* use getargs() in more cases;Guido van Rossum1992-08-141-63/+48
| | | | oct(0) should return '0', not '00'
* check for embedded \0 in strings for z and s formatsGuido van Rossum1992-08-141-2/+13
|
* * classobject.[ch], {float,long,int}object.c, bltinmodule.c:Guido van Rossum1992-08-142-36/+31
| | | | | | 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.
* Changes so that user-defined classes can implement operations invokedGuido van Rossum1992-08-122-32/+109
| | | | | by special syntax: you can now define your own numbers, sequences and mappings.
* To ignore a call, cast it to (void), not to (void *)...Guido van Rossum1992-08-121-1/+1
|
* * Makefile: cosmeticsGuido van Rossum1992-08-056-48/+40
| | | | | | | | | | | | | | | | | | | | | | | | | * socketmodule.c: get rid of makepair(); fix makesocketaddr to fix broken recvfrom() * socketmodule: get rid of getStrarg() * ceval.h: move eval_code() to new file eval.h, so compile.h is no longer needed. * ceval.c: move thread comments to ceval.h; always make save/restore thread functions available (for dynloaded modules) * cdmodule.c, listobject.c: don't include compile.h * flmodule.c: include ceval.h * import.c: include eval.h instead of ceval.h * cgen.py: add forground(); noport(); winopen(""); to initgl(). * bltinmodule.c, socketmodule.c, fileobject.c, posixmodule.c, selectmodule.c: adapt to threads (add BGN/END SAVE macros) * stdwinmodule.c: adapt to threads and use a special stdwin lock. * pythonmain.c: don't include getpythonpath(). * pythonrun.c: use BGN/END SAVE instead of direct calls; also more BGN/END SAVE calls etc. * thread.c: bigger stack size for sun; change exit() to _exit() * threadmodule.c: use BGN/END SAVE macros where possible * timemodule.c: adapt better to threads; use BGN/END SAVE; add longsleep internal function if BSD_TIME; cosmetics
* * Makefile adapted to changes below.Guido van Rossum1992-08-044-384/+783
| | | | | | | | | | | * split pythonmain.c in two: most stuff goes to pythonrun.c, in the library. * new optional built-in threadmodule.c, build upon Sjoerd's thread.{c,h}. * new module from Sjoerd: mmmodule.c (dynamically loaded). * new module from Sjoerd: sv (svgen.py, svmodule.c.proto). * new files thread.{c,h} (from Sjoerd). * new xxmodule.c (example only). * myselect.h: bzero -> memset * select.c: bzero -> memset; removed global variable
* sysmodule.c: calling sys.settrace() or sys.setprofile() withoutGuido van Rossum1992-06-191-2/+2
| | | | | | | | | arguments crashed in INCREF() calls which should be XINCREF() calls. timemodule.c: fix for SEQUENT port (sys/select, struct timezone) by Jaap Vermeulen xxobject.c: include modsupport.h
* Removed confusing, incorrect comment.Guido van Rossum1992-06-031-1/+1
|
* Added new types to setattr() as well...Guido van Rossum1992-06-031-0/+52
|
* Added parameter decls to do_mkvalue for non-template machinesGuido van Rossum1992-05-151-1/+4
|
* Merged with Steve Miale's versionGuido van Rossum1992-04-131-79/+145
|
* Added mkvalue() functionGuido van Rossum1992-04-131-0/+127
|
* Test for NULL coming out of err_get() in call_exc_trace()Guido van Rossum1992-04-091-0/+4
|
* reverse sense of test for CHECKEXCGuido van Rossum1992-04-081-1/+1
|
* Arg of cmp_outcome becomes an int for portability to the MacGuido van Rossum1992-04-061-3/+3
|
* Don't use NULL as 0 int!Guido van Rossum1992-04-061-1/+1
|
* Latest gramamrGuido van Rossum1992-04-061-132/+130
|
* Copyright for 1992 addedGuido van Rossum1992-04-0512-12/+12
|
* Only * can be used for varargs argument listsGuido van Rossum1992-04-051-4/+8
|
* (Hopefully) fix bug in reference count in call_exc_trace()Guido van Rossum1992-04-051-12/+7
| | | | plus minor rearrangements found during debugging
* Fix reference counts of sys_trace and sys_profileGuido van Rossum1992-04-051-3/+7
|