summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* posix_execve(): Accept any mapping protocol object for the envBarry Warsaw1997-01-291-7/+18
| | | | argument, not hardwired to a dictionary.
* Change bsddbmodule.o -> bsddbmodule.c.Guido van Rossum1997-01-281-1/+1
|
* Added LDLAST variable, substituted by configure script, for the finalGuido van Rossum1997-01-281-1/+2
| | | | argument to the linker (required for DEC Alpha threads).
* Two more arguments to newcodeobject -- first lineno and lineno table.Guido van Rossum1997-01-241-4/+7
|
* Initialize the ob_type field of PyAST_Type dynamically (inGuido van Rossum1997-01-231-3/+7
| | | | | | | | | initparser()) instead of statically (in the initializer). The static initialization, using the address of an object in a different DLL, is too much for the Microsoft VC++ compiler, and we want to be able to build this module as a separate DLL (it's nice to have but we don't want to increase the core DLL's size by 25K). This same trick has been applied to a number of modules, e.g. NumPy and _tkinter.
* Bump install version to 1.5.Guido van Rossum1997-01-221-1/+1
|
* Arrange for PyErr_CheckSignals() to be called via Py_AddPendingCall().Guido van Rossum1997-01-211-1/+3
| | | | | This avoids having to call sigcheck() (the same routine by its old name :-) in the ticker code in ceval.c's main interpreter loop.
* work build# into version stringGuido van Rossum1997-01-202-2/+39
|
* Fix the _setmode() patch for MS_WINDOWS: include <fcntl.h> and useGuido van Rossum1997-01-171-2/+6
| | | | fileno(std*).
* Add stacksize argument to new.code().Guido van Rossum1997-01-171-5/+6
|
* Added Sjoerd's submitted 'ratecv' method. Made corrections for new names.Roger E. Masse1997-01-171-25/+140
| | | | Reindented.
* 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
|
* (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.
* Already renamed. Indented.Roger E. Masse1997-01-161-471/+513
|
* Renamed.Roger E. Masse1997-01-161-79/+88
|
* 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.
* reformattedBarry Warsaw1997-01-161-835/+977
| | | | | | memory leak in Tkapp_(Create|Delete)FileHandler plugged. standard eyeballing
* Removed _xdr moduleBarry Warsaw1997-01-141-1/+0
|
* 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
|
* Formatting.Barry Warsaw1997-01-141-18/+17
|
* Obsolete, now that xdrlib.py uses the new-and-improved struct module.Barry Warsaw1997-01-141-187/+0
|
* Renamed.Barry Warsaw1997-01-131-49/+45
|
* Formatting, and minor error detectionBarry Warsaw1997-01-131-49/+52
|
* initthread(): Removed extraneous Py_INCREF(ThreadError)Barry Warsaw1997-01-131-1/+0
|
* Fix leak involving BuildValue("...O...").Guido van Rossum1997-01-121-3/+7
|
* Add entries for cStringIO and cPickleGuido van Rossum1997-01-111-0/+3
|
* On Windows, -u implies binary mode for stdin/stdoutGuido van Rossum1997-01-111-0/+4
| | | | (as well as unbuffered stdout/stderr).
* The usual return-value and memory management checks. I'm not planningBarry Warsaw1997-01-101-10/+16
| | | | | a test for this module though (it does compile at least on Solaris 2.5)
* Formatting changes, plus memory management in initsyslog()Barry Warsaw1997-01-091-90/+102
|
* initsignal(): Py_DECREFs really should be Py_XDECREFs in case theBarry Warsaw1997-01-091-34/+34
| | | | PyInt_FromLong's failed.
* Plugged a couple of potential return value problems, memory leaks, andBarry Warsaw1997-01-091-8/+13
| | | | descriptor leaks.
* Primarily formatting changes, but I also plugged a couple of potentialBarry Warsaw1997-01-091-302/+308
| | | | return value problems, memory leaks, and descriptor leaks.
* Nailed a couple of memory leaks, caught by Purify.Barry Warsaw1997-01-094-8/+25
|
* cPickle, version 0.1.Guido van Rossum1997-01-061-0/+3767
|
* Jim's latest version.Guido van Rossum1997-01-061-90/+129
|
* New strop_joinfields implementation, highly optimized for Lists. AllBarry Warsaw1997-01-061-60/+82
| | | | | | other sequences use the Sequence protocol from the abstract API. The algorithm has changed so that only one pass through the sequences are made.
* Rewrote translate() as follows:Guido van Rossum1997-01-061-28/+52
| | | | | | | | | | | | - 'delete' is a C++ keyword; use 'del_table' instead - apply Py_CHARMASK() to del_table[i] before using it as an index *** this fixes a bug that was just reported on the list *** - if the translation didn't make any changes, INCREF and return the original string - when del_table is empty or omitted, don't copy the translation table to a table of ints (should be a bit faster) Rewrote maketrans() to avoid copying the table (2-3% faster).
* strop_upper(), strop_lower(): shared code version caused to much of aBarry Warsaw1997-01-031-27/+65
| | | | | | | performance hit. Urg. Reverted. strop_joinfields(): re-instate optimizations for lists and tuples, but support arbitrary other kinds of sequences as well.
* Renamed but not well tested.Roger E. Masse1997-01-031-273/+278
|
* Several changes:Barry Warsaw1997-01-031-142/+106
| | | | | | | | | | | | | | | | | | | | | | | - split_whitespace(): slightly better memory ref handling when errors occur. - strop_joinfields(): First argument can now be any sequence-protocol conformant object. - strop_find(), strop_rfind(): Use PyArg_ParseTuple for optional arguments - strop_lower(), strop_upper(): Factor logic into a common function do_casechange(). - strop_atoi(), strop_atol(): Use PyArg_ParseTuple. - strop_maketrans(): arguments used to be optional, although the documentation doesn't reflect this. Make the source conform to the docs. Arguments are required, but two empty strings will return the identity translation table. - General pass fixing up formatting, and checking for return values.
* Renamed, but not throughly tested.Roger E. Masse1997-01-031-226/+235
|
* Renamed, but untested.Roger E. Masse1997-01-031-765/+780
|
* Added PyLong*UnsignedLong and PyCobject interfaces.Guido van Rossum1997-01-031-0/+4
|
* Renamed, reindented. (was already partially complete)Roger E. Masse1997-01-031-933/+939
|
* Add new formats B, H, I, L for unsigned data types (analogous to theGuido van Rossum1997-01-031-1/+85
| | | | recent changes in the struct module).
* Changed the ``add/sub_offset'' hacks for dealing with C's unsignedGuido van Rossum1997-01-031-112/+14
| | | | | | | int/long types, and use the new PyLong_FromUnsignedLong() and PyLong_AsUnsignedLong() interfaces instead. Semantic change: the 'I' format will now always return a long int.
* Reindented.Roger E. Masse1997-01-031-516/+546
|