summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* fixed inconsistent use of tab and spacesPeter Schneider-Kamp2000-07-111-3/+3
|
* Add test of resize() method of mmap objectsAndrew M. Kuchling2000-07-112-0/+13
|
* Docstring changes.Andrew M. Kuchling2000-07-112-6/+2
|
* Jeremy Hylton:Marc-André Lemburg2000-07-111-2/+4
| | | | better error message for unicode coercion failure
* string_join(): Some cleaning up of reference counting. In theBarry Warsaw2000-07-111-7/+10
| | | | | | | | seqlen==1 clause, before returning item, we need to DECREF seq. In the res=PyString... failure clause, we need to goto finally to also decref seq (and the DECREF of res in finally is changed to a XDECREF). Also, we need to DECREF seq just before the PyUnicode_Join() return.
* add more tests of string.join variants to run_method_testsJeremy Hylton2000-07-111-8/+11
|
* fix two refcount bugs in new string_join implementation:Jeremy Hylton2000-07-111-6/+2
| | | | | 1. PySequence_Fast_GET_ITEM is a macro and borrows a reference 2. The seq returned from PySequence_Fast must be decref'd
* Now that prototypes are in scope, the compiler gives legit wngsTim Peters2000-07-101-2/+2
| | | | | | about int size mismatches at two calls to s_rand. Stuffed in casts to make the code do what it did before but w/o warnings -- although unclear that's correct!
* two changes to string_join:Jeremy Hylton2000-07-101-82/+42
| | | | | | implementation -- use PySequence_Fast interface to iterate over elements interface -- if instance object reports wrong length, ignore it; previous version raised an IndexError if reported length was too high
* -- removed get_default compatibility kludgeFredrik Lundh2000-07-102-3/+4
| | | | -- added a few extra comments to locale.py
* - changed hash calculation for unicode strings. the newFredrik Lundh2000-07-101-18/+20
| | | | | | | | | | value is calculated from the character values, in a way that makes sure an 8-bit ASCII string and a unicode string with the same contents get the same hash value. (as a side effect, this also works for ISO Latin 1 strings). for more details, see the python-dev discussion.
* Give ConfigParser the capability to set as well as read options, and to writeEric S. Raymond2000-07-102-0/+53
| | | | | | | | | | | | | a representation of the configuration state in .ini format that can be read back in by a future read() call. Thus this class is now a back end for .ini editors as well as parsers. This patch is complete and tested, but exposes a bug in the ConfigParser implementation which I have not yet fixed. Because case information is discarded during parsing, the output of write() has its case smashed. I wrote this for a SourceForge interface script called forgetool. Documentation for the new entry points included.
* ANSI-fication (fixed on parameter list I messed up in the patch)Peter Schneider-Kamp2000-07-101-53/+19
|
* ANSI-ficationPeter Schneider-Kamp2000-07-103-105/+35
|
* ANSI-fication, added #ifdef construction in mpz_coercePeter Schneider-Kamp2000-07-101-138/+54
|
* factor out test definitions to string_tests moduleJeremy Hylton2000-07-104-353/+202
| | | | test_string and test_userstring run same tests for string methods
* add isalpha and isalnum methodsJeremy Hylton2000-07-101-0/+2
|
* ANSI-fication, not really tested, but should (hopefully) compilePeter Schneider-Kamp2000-07-102-116/+34
|
* ANSI-fication of the SGI modules (note that svmodule.c and sgimodule.cPeter Schneider-Kamp2000-07-107-2295/+769
| | | | | | have already been checked in) UNTESTED!
* - stupid typo.Fredrik Lundh2000-07-101-1/+1
|
* Add linker flag -export-dynamic so symbols in libpython*.a are exported.Guido van Rossum2000-07-101-1/+2
|
* -- get rid of a compiler warning on unix. (as reportedFredrik Lundh2000-07-101-21/+13
| | | | for #100836, but implemented in a different way)
* Added the line 'Testing UTF-16 code point order comparisons... done."Guido van Rossum2000-07-101-0/+1
| | | | to match addition to test_unicode.py.
* Adapted for Python 2.0 under RH Linux.Guido van Rossum2000-07-101-5/+6
|
* remove prints of file objects from _testJeremy Hylton2000-07-101-2/+0
|
* expect message "no regression test case for method 'encode'Jeremy Hylton2000-07-101-0/+3
|
* Patch from Joe Eaton <jeaton@hostway.net> (SF#100741) to fix following problem:Andrew M. Kuchling2000-07-101-1/+0
| | | | | | | | There is a silly bug in the fall-back dumbdbm.py database package in the Python 1.5.2 standard distro. This bug causes any changes to an existing item to generate a new key, even when the key already exists. After many updates, the .dir file used by dumbdbm grows to a huge size, and can cause filesystem problems.
* ANSI-ficationPeter Schneider-Kamp2000-07-103-73/+26
|
* ANSI-ficationPeter Schneider-Kamp2000-07-103-177/+60
|
* ANSI-fyingPeter Schneider-Kamp2000-07-104-157/+55
| | | | | added excplicit node * parameter to termvalid argument in validate_two_chain_ops of parsermodule.c (as proposed by fred)
* ANSI-ficationPeter Schneider-Kamp2000-07-104-213/+70
|
* ANSI-ficationPeter Schneider-Kamp2000-07-103-75/+25
|
* ANSI-ficationPeter Schneider-Kamp2000-07-102-32/+11
|
* ANSI-ficationPeter Schneider-Kamp2000-07-103-63/+22
|
* ANSI-ficationPeter Schneider-Kamp2000-07-101-53/+19
|
* ANSI-ficationPeter Schneider-Kamp2000-07-101-31/+11
|
* ANSI-ficationPeter Schneider-Kamp2000-07-104-124/+43
|
* ANSI-ficationPeter Schneider-Kamp2000-07-101-48/+16
|
* ANSI-ficationPeter Schneider-Kamp2000-07-101-84/+24
|
* ANSI-ficationPeter Schneider-Kamp2000-07-101-38/+19
|
* ANSI-fication (and test if committing files works now)Peter Schneider-Kamp2000-07-101-2/+1
|
* Better error handling of bad entity references. Before when an & inSjoerd Mullender2000-07-101-16/+25
| | | | | | an attribute value was not escaped, you could get two syntax errors: one about a missing semicolon and one about an unknown entity. Now you get only one about a bogus ampersand.
* Initialize the return value in collect_generations() since it is updatedVladimir Marangozov2000-07-101-1/+1
| | | | conditionally in the code.
* Remove the "1" that Tim sticked to the preprocessor symbol for unknown reasonsVladimir Marangozov2000-07-101-1/+1
| | | | (cf. the rest of the headers in the distribution)
* A small comment fix just to make sure I got my cvs/ssh setup right.Vladimir Marangozov2000-07-101-1/+1
|
* Guido said include these in the Great ANSI-fication, so here they are!Fred Drake2000-07-102-259/+216
|
* - changed the nt.popen2 return values back toFredrik Lundh2000-07-092-40/+55
| | | | | | | | (write, read, ...), based on feedback from GvR. - added tuple-swapping code to popen2.py - fixed some runaway indentation in posixmodule.c
* - repaired locale.py for non-windows platforms. the try/exceptFredrik Lundh2000-07-091-2/+5
| | | | | checked for the wrong exception. my fault. sorry. (first reported by Alex Coventry)
* Exception__str__(): In case 1, be sure to decref the tmp localBarry Warsaw2000-07-091-4/+8
| | | | | variable. This crushes another memory leak. Slight rewrite included.
* Use TQSQ (triple quoted single quote) module docstring for betterBarry Warsaw2000-07-091-2/+2
| | | | font-locking. This complets the merge with Mailman's version.