summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* * 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
|
* tightened try statement syntaxGuido van Rossum1992-03-311-10/+22
|
* fix HUGE and MAXVAL (suggested by Tim Peters)Guido van Rossum1992-03-271-2/+2
|
* lintGuido van Rossum1992-03-271-2/+0
|
* lint (added prototypes for all static fns)Guido van Rossum1992-03-271-29/+34
|
* fix what lint foundGuido van Rossum1992-03-271-16/+8
|
* Shut up lintGuido van Rossum1992-03-271-0/+2
|
* Shut up lint.Guido van Rossum1992-03-271-2/+2
|
* Add -v option (verbose) and get rid of finaloutput() function (unused)Guido van Rossum1992-03-271-11/+8
|
* Print messages about where from modules are imported when -v is given.Guido van Rossum1992-03-271-2/+27
|
* *** empty log message ***Guido van Rossum1992-03-241-605/+703
|
* Added settrace() and setprofile().Guido van Rossum1992-03-231-13/+30
|
* New trace implementation; and profile (in a similat vein).Guido van Rossum1992-03-231-84/+109
|
* Totally get rid of silly '\E' escape.Guido van Rossum1992-03-121-3/+0
|