summaryrefslogtreecommitdiff
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* Kill all local variables on function return. This closes a giganticGuido van Rossum1997-01-211-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 Rossum1997-01-211-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 Rossum1997-01-211-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
* get build info from elsewhereGuido van Rossum1997-01-201-9/+2
|
* Changes for frame object speedup:Guido van Rossum1997-01-201-14/+2
| | | | | | - get fastlocals differently - call newframeobject() with fewer arguments - toss getowner(), which was unused anyway
* Remove unused variable.Guido van Rossum1997-01-181-1/+0
|
* Intern the string "__complex__".Guido van Rossum1997-01-181-1/+1
|
* Intern all names and varnames in newcodeobject(), plus those stringGuido van Rossum1997-01-181-7/+22
| | | | | literals that look like identifiers. Also intern all strings used as names during the compilation.
* Add "if (x != NULL) continue;" (or similar for err==0) before theGuido van Rossum1997-01-181-18/+60
| | | | | break to most cases, as suggested by Tim Peters. This gives another 8-10% speedup.
* Marshal the new stacksize item in code objects.Guido van Rossum1997-01-171-1/+3
|
* Working semaphore implementation by Sjoerd.Guido van Rossum1997-01-171-3/+64
|
* New MAGIC number (code objects have one more item when marshalled).Guido van Rossum1997-01-171-1/+2
|
* Use the stack size from the code object and the CO_MAXBLOCKS constantGuido van Rossum1997-01-171-2/+10
| | | | from compile.h. Remove all eval stack overflow checks.
* Add co_stacksize field to codeobject structure, and stacksize argumentGuido van Rossum1997-01-171-62/+253
| | | | | | | | | | | | to PyCode_New() argument list. Move MAXBLOCKS constant to conpile.h. Added accurate calculation of the actual stack size needed by the generated code. Also commented out all fprintf statements (except for a new one to diagnose stack underflow, and one in #ifdef'ed out code), and added some new TO DO suggestions (now that the stacksize is taken of the TO DO list).
* Check for duplicate keyword arguments at compile time.Guido van Rossum1997-01-061-12/+20
|
* Make builtin_module_names a tuple instead of a list.Guido van Rossum1997-01-061-0/+5
|
* Rename DEBUG macro to Py_DEBUGGuido van Rossum1996-12-303-9/+9
|
* Moved the raise logic out of the main interpreter loop to a separate function.Guido van Rossum1996-12-101-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.
* Better way to handle 64-bit ints, keeping gcc -Wall happy.Guido van Rossum1996-12-101-30/+18
| | | | Tested with AMK's help.
* Add unistd.h to make gcc -Wall happy.Guido van Rossum1996-12-101-0/+4
|
* Add const to error and newstring functionsGuido van Rossum1996-12-101-1/+1
|
* Keep gcc -Wall happy.Guido van Rossum1996-12-056-28/+38
|
* Support __complex__ method on instances, for complex() conversion.Guido van Rossum1996-12-051-1/+23
| | | | Keep gcc -Wall happy.
* Change the Don Beaudry hack into the Don B + Jim F hack; now, if *any*Guido van Rossum1996-12-051-28/+26
| | | | | | base class is special it gets invoked. Make gcc -Wall happy.
* Some extra flags that an HPUX user wants me to add.Guido van Rossum1996-12-051-2/+2
|
* Tentative changes to make this work better on 64-bit machines.Guido van Rossum1996-12-051-3/+66
| | | | | A plain int that doesn't fit in 32 bits will be marshalled using a new type. 32 bits machines can't handle this and will issue a warning.
* New permission notice, includes CNRI.Guido van Rossum1996-10-2538-495/+761
|
* Forget about Ellipses b/w compatibility.Guido van Rossum1996-10-161-2/+0
|
* Ellipses -> Ellipsis rename (the dictionary really says that it shouldGuido van Rossum1996-10-113-8/+10
| | | | | | | | be Ellipsis!). Bumped the API version because a linker-visible symbol is affected. Old C code will still compile -- there's a b/w compat macro. Similarly, old Python code will still run, builtin exports both Ellipses and Ellipsis.
* Sjoerd's thread changes (including down_sema typo fix).Guido van Rossum1996-10-088-18/+47
| | | | Note: waitflag not supported on NT.
* Added line number to most compile-time error messages.Guido van Rossum1996-09-171-88/+90
|
* Rationalized MS ifdefsGuido van Rossum1996-09-113-18/+10
|
* Changes to setpythonpath():Guido van Rossum1996-09-101-4/+23
| | | | | Test for / as well as for SEP for MS filenames. Drop trailing separator from sys.path[0] for MS and Unix filenames.
* Stupid bug: complex(x,y) would yield x+xjGuido van Rossum1996-09-071-1/+1
|
* *** empty log message ***Guido van Rossum1996-08-291-0/+26
|
* Needed more includes...Guido van Rossum1996-08-291-6/+3
|
* *** empty log message ***Guido van Rossum1996-08-291-0/+22
|
* typo (#indef -> #undef)Guido van Rossum1996-08-261-1/+1
|
* Afterthough: leave both leading underscores in,Guido van Rossum1996-08-241-5/+5
| | | | so __spam becomes _ClassName__spam.
* Oops need to mangle global statement separatelyGuido van Rossum1996-08-241-0/+7
|
* Name mangling, what the heck!Guido van Rossum1996-08-241-3/+80
|
* Use MS_DLL_ID as sys.winverGuido van Rossum1996-08-231-2/+2
|
* PYTHONWIN -> MS_COREDLLGuido van Rossum1996-08-221-1/+1
|
* Add needed #include <ctype.h>Guido van Rossum1996-08-211-0/+2
|
* Add explicit #undef _POSIX_THREADS for use on Solaris 2.5 (Sjoerd).Guido van Rossum1996-08-211-0/+1
|
* Don't require <dlfcn.h> -- rely on existence of dlopen().Guido van Rossum1996-08-201-1/+3
|
* Always include config.hGuido van Rossum1996-08-196-12/+0
|
* Many little fixes:Guido van Rossum1996-08-191-3/+19
| | | | | | | | - support for SCO_SV dynamic loading - on Mac, auto-detect dynamic loading by __CFM68K__ or _powerc) - on Mac, long shared library extension is .cfm68k.slb or .ppc.slb - on hp, don't redefine hpux if already defined - add __file__ property to successfully loaded module
* getprogramname -> Py_GetProgramName.Guido van Rossum1996-08-191-2/+2
|
* Raise TypeError, not KeyError, on unknown keyword argument.Guido van Rossum1996-08-191-2/+1
|