summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* String interning.Guido van Rossum1997-01-183-32/+285
|
* Bump API version due to the various speedup hacks.Guido van Rossum1997-01-181-2/+4
|
* Two speedup hacks. Caching the hash saves recalculation of a string'sGuido van Rossum1997-01-181-3/+23
| | | | | | | | | | hash value. Interning strings (which requires hash caching) tries to ensure that only one string object with a given value exists, so equality tests are one pointer comparison. Together, these can speed the interpreter up by as much as 20%. Each costs the size of a long or pointer per string object. In addition, interned strings live until the end of times. If you are concerned about memory footprint, simply comment the #define out here (and rebuild everything!).
* 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.
* Version 1.1. Fix memory leak and expensive comparison with None.Guido van Rossum1997-01-182-6/+44
|
* Fix the _setmode() patch for MS_WINDOWS: include <fcntl.h> and useGuido van Rossum1997-01-171-2/+6
| | | | fileno(std*).
* Remove obsolete PyFrame_ExtendStack.Guido van Rossum1997-01-171-1/+0
|
* Removed accessobject.c from file list.Guido van Rossum1997-01-171-2109/+2076
|
* Add stacksize argument to new.code().Guido van Rossum1997-01-172-6/+7
|
* Comment out extend_stack() -- it is no longer needed.Guido van Rossum1997-01-171-0/+2
|
* 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).
* Add co_stacksize field to codeobject structure, and stacksize argumentGuido van Rossum1997-01-171-1/+3
| | | | | to PyCode_New() argument list. Also add CO_MAXBLOCKS constant indicating the maximum static nesting supported by the compiler.
* Of course, when the type of the argument to dis() is unsupported, itGuido van Rossum1997-01-171-1/+1
| | | | should raise TypeError, not ValueError...
* More user friedly interface:Guido van Rossum1997-01-171-10/+25
| | | | | | | | | | | dis() still disassembles the last frame of the lats stack trace. dis(x) disassembles x, which may be a code object, function, or method. disassemble(co, [lasti]) disassembles a code object; the lasti argument is now optional. disco(...) is an alias for disassemble(...), for backward compatibility.
* Added Sjoerd's submitted 'ratecv' method. Made corrections for new names.Roger E. Masse1997-01-171-25/+140
| | | | Reindented.
* Make as sure as we can that the forked child does not return andGuido van Rossum1997-01-171-12/+15
| | | | continue the tests.
* Renamed, but not tested. Guido will you try your test script on this?Roger E. Masse1997-01-171-95/+94
|
* Renamed.Roger E. Masse1997-01-171-530/+584
|
* Test output for the SGI cl C module test script.Roger E. Masse1997-01-171-0/+1
|
* Lame test script for the SGI cl C module.Roger E. Masse1997-01-171-0/+78
|
* (puremodule.c): New module which exports the Purify and Quantify C APIBarry Warsaw1997-01-173-4/+1169
| | | | | | | | | | | to Python. Minimal documentation is included in comments at the top of the file, and in the Misc/PURIFY.README file. Note that this module must be statically linked since Pure doesn't provide shared stubs libraries. (Setup.in): Added commented template for pure module (syslogmodule.c): ins() function wasn't declared static.
* README file for hints on Purify'ing or Quantify'ing the PythonBarry Warsaw1997-01-161-0/+72
| | | | interpreter. It also mentions the soon to be checked in pure module.
* Already renamed. Indented.Roger E. Masse1997-01-161-471/+513
|
* Output from test script for the bsddb C extension module.Roger E. Masse1997-01-161-0/+1
|
* Test script for the bsddb C extension module.Roger E. Masse1997-01-161-0/+69
|
* Rewrote lookmapping() according to suggestions by Jyrki Alakuijala.Guido van Rossum1997-01-162-42/+142
|
* Minor output message changeRoger E. Masse1997-01-162-2/+14
|
* Merge several mods:Guido van Rossum1997-01-161-2/+12
| | | | | | | | - add opcodes BINARY_LSHIFT ... BINARY_OR - remove RESERVE_FAST - Skip M's suggestion for displaying which comparison operator is meant
* Renamed.Roger E. Masse1997-01-161-79/+88
|
* As per GvR recomendations, remove the restriction that binhex only run onRoger E. Masse1997-01-161-33/+43
| | | | | | | big-endian machines. This is done by directing the struct module's pack and unpack methods to treat the data always in bin endian format. This has been tested on irix (big endian) and solaris x86 (little endian) but not yet on the mac.
* set_key(): Use Py_CHARMASK macro to get the character from the arrayBarry Warsaw1997-01-161-237/+43
| | | | | | | | unsigned. This fixes the 8bit-char-in-key platform incompatibility. I also removed the old backwards compatibility code, and the commented lisp rotor code. I retained the lisp docstrings as comments preceding each function.
* test output for the binascii C module test script.Roger E. Masse1997-01-161-0/+1
|
* test script for the binascii C module.Roger E. Masse1997-01-162-0/+80
|
* reformattedBarry Warsaw1997-01-161-835/+977
| | | | | | memory leak in Tkapp_(Create|Delete)FileHandler plugged. standard eyeballing
* test is no longer neededBarry Warsaw1997-01-162-32/+0
|
* Opps. Added tests for the last two methods that were missing fromRoger E. Masse1997-01-151-1/+11
| | | | the test program: 'grey2rgb' and 'rgb2grey'
* Modified to use 'rgbimg' instead of the SGI specific 'imgfile' for readingRoger E. Masse1997-01-151-24/+58
| | | | | | | | the imagefiles and converting tham to a format suitable for imageop. Also added two more tests 'rgb2rgb8' and 'rgb82rgb' which remove the dependence on the file 'greytest.rgb'. Note: test_imgfile.py still uses 'greytest.rgb'
* Irix 6 specific files -- thanks Sjoerd!Guido van Rossum1997-01-1558-0/+10664
|
* "ported" Guido's embedding demo to the mac, and wrote some minimalJack Jansen1997-01-155-1/+278
| | | | notes on embedding on the mac.
* Added PyMac_Initialize() routine, to be used by embedding programs (inJack Jansen1997-01-155-516/+532
| | | | stead of standard Py_Initialize(), which it calls).
* Describe new ("unsigned") behavior of hex() and oct().Guido van Rossum1997-01-142-4/+24
|
* Removed _xdr moduleBarry Warsaw1997-01-141-1/+0
|
* test(): close the pipe, just to shut up Purify.Barry Warsaw1997-01-141-0/+1
|
* Eliminated gcc -Wall complaints:Barry Warsaw1997-01-141-26/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Quieted gcc -Wall by removing unused local variables. - Added some choice parentheses around assignments in conditional tests. - Removed an unused (and seemingly unreachable) err label in load_short_binstring(). - in Unpickler_load(), removed \. in string format. - init_stuff() was declared to return an int, but had these problems: - it was returning NULL instead of 0 or 1 in some cases - it was falling of the end of the routine without returning anything - the call of init_stuff() in initcPickle() was never checking the return value anyway. I changed all this by returning 1 in the case of errors, 0 when no error occurred. Then in initcPickle(), if init_stuff() returns non-zero, I call Py_FatalError(). Suppressing my urge to reformat according to Python coding standards! :-)
* Quieted gcc -Wall by removing unused local variables.Barry Warsaw1997-01-141-5/+9
| | | | | Suppressing my urge to reformat according to Python coding standards! :-)
* Quieted gcc -Wall by removing unused local variables.Barry Warsaw1997-01-141-2/+0
|