summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
Commit message (Collapse)AuthorAgeFilesLines
* fix *serious* (new) bug in testbool: by default objects should testGuido van Rossum1992-08-191-1/+1
| | | | true, not false!!!
* * classobject.[ch], {float,long,int}object.c, bltinmodule.c:Guido van Rossum1992-08-141-7/+18
| | | | | | 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-121-31/+75
| | | | | by special syntax: you can now define your own numbers, sequences and mappings.
* * Makefile: cosmeticsGuido van Rossum1992-08-051-27/+8
| | | | | | | | | | | | | | | | | | | | | | | | | * 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-041-3/+93
| | | | | | | | | | | * 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
* 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
|
* (Hopefully) fix bug in reference count in call_exc_trace()Guido van Rossum1992-04-051-12/+7
| | | | plus minor rearrangements found during debugging
* lint (added prototypes for all static fns)Guido van Rossum1992-03-271-29/+34
|
* New trace implementation; and profile (in a similat vein).Guido van Rossum1992-03-231-84/+109
|
* Tighten error handling of string printing.Guido van Rossum1992-03-041-1/+5
|
* Use correct prototype for invert().Guido van Rossum1992-02-111-1/+1
|
* Limit length of name passed to sprintf.Guido van Rossum1992-02-051-1/+1
|
* If sys.trace is None, don't trace. For exceptions, only useGuido van Rossum1992-01-191-6/+7
| | | | the local trace function.
* Added UNPACK_VARARG code.Guido van Rossum1992-01-141-0/+36
|
* User trace feature.Guido van Rossum1992-01-121-27/+162
|
* Fix bug in assign_slice for negative index; used length of wrong object!Guido van Rossum1992-01-101-1/+1
|
* Negative subscript are now allowed as in slices.Guido van Rossum1991-12-241-7/+14
| | | | Added ImportError.
* New argument passing mechanism.Guido van Rossum1991-12-161-35/+109
|
* Added STORE_GLOBAL and DELETE_GLOBAL.Guido van Rossum1991-12-101-4/+24
| | | | Exceptions may now also be tuples.
* Added shift and mask ops.Guido van Rossum1991-10-241-0/+170
|
* newclassobject() gets a third argumentGuido van Rossum1991-10-201-1/+1
|
* Changed many calls to dict stufff to dict2 variants.Guido van Rossum1991-08-161-31/+35
| | | | *** Somehow the call to printobject was changed back to fwrite?!?! ***
* Add interface to call a Python function (or other callable) objectGuido van Rossum1991-07-271-0/+13
| | | | from C.
* Call printobject instead of fwrite to print strings.Guido van Rossum1991-07-221-2/+2
|
* Call coerce() in arithmetic operations, to support mixed mode arithmeticGuido van Rossum1991-07-011-12/+46
|
* printobject now returns an error codeGuido van Rossum1991-06-071-3/+4
|
* Remove test for unimplemented sq_repeat method (see tupleobject comments)Guido van Rossum1991-06-041-4/+0
|
* Declare ticker as int; made testbool generic for all numeric typesGuido van Rossum1991-05-141-7/+5
|
* Renamed class methods to instance methods (which they are)Guido van Rossum1991-05-051-5/+5
|
* Moved support functions after main function; added prototypes;Guido van Rossum1991-04-041-572/+617
| | | | | Fixed 'needspace' hack to use a flag in the stdout file object; added local and global variable lookup cases.
* Define and use GETNAMEV macro.Guido van Rossum1991-04-031-2/+3
|
* Added copyright notice.Guido van Rossum1991-02-191-0/+24
|
* File name shortening.Guido van Rossum1991-01-211-1/+1
|
* Change div() into divide(); div() is a Standard C function.Guido van Rossum1990-12-201-2/+2
|
* "Compiling" versionGuido van Rossum1990-12-201-809/+659
|
* Free parse tree after compiling.Guido van Rossum1990-11-181-169/+171
| | | | | | Added support for class definitions. Reorganized main interpreter loop to fetch op and arg once at the head. Use two bytes for arguments (see ceval.c).
* Initial revisionGuido van Rossum1990-11-181-0/+1560