Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Kill all local variables on function return. This closes a gigantic | Guido van Rossum | 1997-01-21 | 1 | -0/+12 |
| | | | | | leak of memory and file descriptors (thanks for Roj for reporting that!). Alas, the speed goes down by 5%. :-( | ||||
* | Only call sigcheck() at the ticker code if we don't have true signals. | Guido van Rossum | 1997-01-21 | 1 | -2/+6 |
| | | | | | | | This is safe now that both intrcheck() and signalmodule.c schedule a sigcheck() call via Py_AddPendingCall(). This gives another 7% speedup (never run such a test twice ;-). | ||||
* | Cleanup: | Guido van Rossum | 1997-01-21 | 1 | -222/+10 |
| | | | | | | | | | | - fix bug in Py_MakePendingCalls() with threading - fix return type of do_raise - remove build_slice (same as PySlice_New) - remove code inside #if 0 - remove code inside #ifdef CHECK_STACK - remove code inside #ifdef SUPPORT_OBSOLETE_ACCESS - comment about newimp.py should refer to ni.py | ||||
* | Changes for frame object speedup: | Guido van Rossum | 1997-01-20 | 1 | -14/+2 |
| | | | | | | - get fastlocals differently - call newframeobject() with fewer arguments - toss getowner(), which was unused anyway | ||||
* | Add "if (x != NULL) continue;" (or similar for err==0) before the | Guido van Rossum | 1997-01-18 | 1 | -18/+60 |
| | | | | | break to most cases, as suggested by Tim Peters. This gives another 8-10% speedup. | ||||
* | Use the stack size from the code object and the CO_MAXBLOCKS constant | Guido van Rossum | 1997-01-17 | 1 | -2/+10 |
| | | | | from compile.h. Remove all eval stack overflow checks. | ||||
* | Rename DEBUG macro to Py_DEBUG | Guido van Rossum | 1996-12-30 | 1 | -3/+3 |
| | |||||
* | Moved the raise logic out of the main interpreter loop to a separate function. | Guido van Rossum | 1996-12-10 | 1 | -60/+127 |
| | | | | | | | | | | | | | | | The raise logic has one additional feature: if you raise <class>, <value> where <value> is not an instance, it will construct an instance using <value> as argument. If <value> is None, <class> is instantiated without arguments. If <value> is a tuple, it is used as the argument list. This feature is intended to make it easier to upgrade code from using string exceptions to using class exceptions; without this feature, you'd have to change every raise statement from ``raise X'' to ``raise X()'' and from ``raise X, y'' to ``raise X(y)''. The latter is still the recommended form (because it has no ambiguities about the number of arguments), but this change makes the transition less painful. | ||||
* | Change the Don Beaudry hack into the Don B + Jim F hack; now, if *any* | Guido van Rossum | 1996-12-05 | 1 | -28/+26 |
| | | | | | | base class is special it gets invoked. Make gcc -Wall happy. | ||||
* | New permission notice, includes CNRI. | Guido van Rossum | 1996-10-25 | 1 | -13/+20 |
| | |||||
* | Raise TypeError, not KeyError, on unknown keyword argument. | Guido van Rossum | 1996-08-19 | 1 | -2/+1 |
| | |||||
* | Don't test here for negative number to float power; that belongs in | Guido van Rossum | 1996-08-16 | 1 | -9/+0 |
| | | | | floatobject.c. | ||||
* | Disable support for access statement | Guido van Rossum | 1996-08-12 | 1 | -0/+28 |
| | |||||
* | Better error message if stride used on normal sequence object | Guido van Rossum | 1996-07-30 | 1 | -2/+10 |
| | |||||
* | Changes for slice and ellipses | Guido van Rossum | 1996-07-30 | 1 | -13/+67 |
| | |||||
* | Renamed static pow() to powerop() to avoid name conflict in some compilers. | Guido van Rossum | 1996-06-19 | 1 | -4/+4 |
| | |||||
* | Removed some done "to do" items. | Guido van Rossum | 1996-05-24 | 1 | -9/+3 |
| | | | | Changed #ifdef DEBUG slightly. | ||||
* | removed sime redundant header includes and decls. | Guido van Rossum | 1996-05-23 | 1 | -8/+0 |
| | |||||
* | changes for complex and power (**) operator | Guido van Rossum | 1996-01-12 | 1 | -0/+38 |
| | |||||
* | don't return from main loop when error occurs | Guido van Rossum | 1995-12-10 | 1 | -1/+2 |
| | |||||
* | spell TraceBack with capital B | Guido van Rossum | 1995-09-18 | 1 | -1/+1 |
| | |||||
* | empty kw dict is ok for builtins | Guido van Rossum | 1995-08-04 | 1 | -1/+6 |
| | |||||
* | fix bogus DECREF in finally clause | Guido van Rossum | 1995-07-28 | 1 | -0/+1 |
| | |||||
* | changes for keyword args to built-in functions and classes | Guido van Rossum | 1995-07-26 | 1 | -19/+43 |
| | |||||
* | keyword arguments and faster calls | Guido van Rossum | 1995-07-18 | 1 | -364/+459 |
| | |||||
* | 3rd arg for raise; INCOMPLETE keyword parameter passing (currently ↵ | Guido van Rossum | 1995-07-07 | 1 | -30/+151 |
| | | | | f(kw=value) is seen as f('kw', value)) | ||||
* | fix dusty debugging macros | Guido van Rossum | 1995-03-29 | 1 | -1/+1 |
| | |||||
* | remove unused code for tp_call | Guido van Rossum | 1995-03-22 | 1 | -13/+1 |
| | |||||
* | various tuple related optimizations; remove unused b/w compat code from ceval.c | Guido van Rossum | 1995-03-09 | 1 | -74/+26 |
| | |||||
* | fix bug in try-finally with class exceptions; declare different func ↵ | Guido van Rossum | 1995-02-17 | 1 | -6/+7 |
| | | | | pointers for different uses | ||||
* | call __import__() with 4 args instead of 1 | Guido van Rossum | 1995-02-14 | 1 | -1/+51 |
| | |||||
* | use Py_CHARMASK | Guido van Rossum | 1995-02-10 | 1 | -1/+2 |
| | |||||
* | DECREF result of run_string | Guido van Rossum | 1995-02-07 | 1 | -2/+3 |
| | |||||
* | remove unused variable | Guido van Rossum | 1995-01-30 | 1 | -1/+0 |
| | |||||
* | allow classes as exceptions | Guido van Rossum | 1995-01-26 | 1 | -4/+26 |
| | |||||
* | add missing INCREF in RAISE_EXCEPTION | Guido van Rossum | 1995-01-20 | 1 | -1/+2 |
| | |||||
* | different init for __builtins__ | Guido van Rossum | 1995-01-17 | 1 | -2/+2 |
| | |||||
* | use getbuiltins() everywhere, it defaults to getbuiltidict() | Guido van Rossum | 1995-01-12 | 1 | -1/+2 |
| | |||||
* | __builtins__ mods (and sys_checkinterval for ceval.c) | Guido van Rossum | 1995-01-09 | 1 | -21/+25 |
| | |||||
* | Use new instancebinop interface | Guido van Rossum | 1995-01-07 | 1 | -18/+18 |
| | |||||
* | Added 1995 to copyright message. | Guido van Rossum | 1995-01-04 | 1 | -2/+2 |
| | | | | | | bltinmodule.c: fixed coerce() nightmare in ternary pow(). modsupport.c (initmodule2): pass METH_FREENAME flag to newmethodobject(). pythonrun.c: move flushline() into and around print_error(). | ||||
* | Lots of changes, most minor (fatal() instead of abort(), use of | Guido van Rossum | 1995-01-02 | 1 | -44/+62 |
| | | | | | | err_fetch/err_restore and so on). But... NOTE: import.c has been rewritten and all the DL stuff is now in the new file importdl.c. | ||||
* | replace abort() calls by fatal() | Guido van Rossum | 1994-11-10 | 1 | -14/+6 |
| | |||||
* | * Python/ceval.c, Include/ceval.h: promote MakePendingCalls to | Guido van Rossum | 1994-09-29 | 1 | -4/+33 |
| | | | | | | | | | | global: Py_MakePendingCalls. Also guard against recursive calls * Include/classobject.h, Objects/classobject.c, Python/{ceval.c,bltinmodule.c}: 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) | ||||
* | * Python/ceval.c (eval_code): added registry of pending functions | Guido van Rossum | 1994-09-14 | 1 | -1/+91 |
| | | | | | (to be used by functions that are called asynchronously, like UNIX signal handlers or Mac I/O completion routines) | ||||
* | call_object: print message before abort() | Guido van Rossum | 1994-08-30 | 1 | -157/+144 |
| | |||||
* | * mpzmodule.c: cast some methods to the proper type. | Guido van Rossum | 1993-12-17 | 1 | -1/+0 |
| | | | | | | | * traceback.c (tb_print): use sys.tracebacklimit as a maximum number of traceback entries to print (default 1000). * ceval.c (printtraceback): Don't print stack trace header -- this is now done by tb_print(). | ||||
* | * mpzmodule.c: removed redundant mpz_print function. | Guido van Rossum | 1993-11-05 | 1 | -6/+7 |
| | | | | | | | | | | | | | | * object.[ch], bltinmodule.c, fileobject.c: changed str() to call strobject() which calls an object's __str__ method if it has one. strobject() is also called by writeobject() when PRINT_RAW is passed. * ceval.c: rationalize code for PRINT_ITEM (no change in function!) * funcobject.c, codeobject.c: added compare and hash functionality. Functions with identical code objects and the same global dictionary are equal. Code objects are equal when their code, constants list and names list are identical (i.e. the filename and code name don't count). (hash doesn't work yet since the constants are in a list and lists can't be hashed -- suppose this should really be done with a tuple now we have resizetuple!) | ||||
* | * ceval.c, longobject.c, methodobject.c, listnode.c, arraymodule.c, | Guido van Rossum | 1993-11-01 | 1 | -0/+1 |
| | | | | | | pythonrun.c: added static forward declarations * pythonrun.h, ceval.h, longobject.h, node.h: removed declarations of static routines | ||||
* | Several optimizations and speed improvements. | Sjoerd Mullender | 1993-10-22 | 1 | -7/+5 |
| | | | | cstubs: Use Matrix type instead of float[4][4]. |