summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Resynchronize the TeX docs with (a) the module docstring, and (b) my recentEric S. Raymond2000-07-121-2/+2
| | | | fix to the code to make it behave like the module docstring.
* Fix bugs in readinst():Andrew M. Kuchling2000-07-121-10/+25
| | | | | | | | * There was no error reported if the .read() method returns a non-string * If read() returned too much data, the buffer would be overflowed causing a core dump * Used strncpy, not memcpy, which seems incorrect if there are embedded \0s. * The args and bytes objects were leaked
* Patch #100854 from jhylton: eliminate compiler warnings in pyexpat:Andrew M. Kuchling2000-07-121-21/+22
| | | | | | | | The first two warnings seem harmless enough, but the last one looks like a potential bug: an uninitialized int is returned on error. (I also ended up reformatting some of the code, because it was hard to read.)
* Fix mixed mallocs: re->re_patbuf.buffer is allocated with std malloc().Vladimir Marangozov2000-07-121-1/+1
|
* new test for posixpath moduleSkip Montanaro2000-07-121-0/+2
|
* new test file for posixpath moduleSkip Montanaro2000-07-121-0/+42
|
* Errare humanum est.Peter Schneider-Kamp2000-07-111-1/+1
| | | | Changed parameter in getsockaddrlen from unsigned to socklen_t.
* Got rid of __SC__ ifdefs.Jack Jansen2000-07-113-12/+0
|
* Include macglue.h for some function prototypes, and renamed a fewJack Jansen2000-07-113-3/+10
| | | | mac-specific functions to have a PyMac_ name.
* Include macglue.h on the macintosh, so function prototypes are in scope.Jack Jansen2000-07-111-0/+4
|
* One more include of limits.h (possibly to be moved elsewhere when there isJack Jansen2000-07-111-0/+3
| | | | consensus where it should go).
* Removed guesstabsize.c, which is obsolete.Jack Jansen2000-07-112-63/+0
|
* - Removed guesstabsize.c, which is obsolete.Jack Jansen2000-07-111-0/+0
| | | | - ANSIfication step 3: enable "require prototypes" flags. Still lots of warnings, mainly on init routines and bgen stuff.
* ANSIfication step 2: make sure all needed prototypes are available, and all ↵Jack Jansen2000-07-1119-41/+83
| | | | | | needed header files included.
* Added a declaration of fileno() if we use GUSI. Not sure whether it should ↵Jack Jansen2000-07-111-0/+5
| | | | go here or in pyport.h really...
* Fiddled declaration/implementation of setcallback() so that it is ansifyable.Jack Jansen2000-07-112-8/+16
|
* small updates to string_join:Jeremy Hylton2000-07-112-6/+12
| | | | | | | use PyString_AS_STRING macro on local string object when resizing string, make sure resized string will always be big enough split string containing error message across two lines add test to string_tests that causes resizing
* satisfy the -Wall: remove two unused local variables and unused ins functionJeremy Hylton2000-07-111-13/+0
|
* ANSIfication step 1: get rid of Py_PROTO and Py_FPROTO.Jack Jansen2000-07-116-33/+33
|
* Fix incomplete merge of Ping's SyntaxError enhancement patch (my fault).Fred Drake2000-07-111-1/+1
| | | | Comment change only.
* Moshe Zadka <mzadka@geocities.com>:Fred Drake2000-07-111-8/+29
| | | | | | | | | | Update the "in" / "not in" description to accomodate the current use of the __contains__() discipline. This patch also incorporates suggestions from Marc-Andre Lemburg <mal@lemburg.com>, minor markup revisions from Fred Drake, and some rewording of the first affected paragraph (also from Fred). Closes SourceForge patch #100831.
* Create two new exceptions: IndentationError and TabError. These areFred Drake2000-07-1110-19/+80
| | | | | | | used for indentation related errors. This patch includes Ping's improvements for indentation-related error messages. Closes SourceForge patches #100734 and #100856.
* fixed a warning in getsockaddrlenPeter Schneider-Kamp2000-07-111-1/+1
|
* add expandtabs command (-e)Peter Schneider-Kamp2000-07-111-37/+64
| | | | change eliminate to delete (-d)
* Change the table in the pyexpat.errors module to a series of datadescFred Drake2000-07-111-21/+64
| | | | | | | | elements (since the table was pretty screwed up); this is how it is done elsewhere in the manual. I could use some help creating descriptions of the specific error identifiers (input conditions that lead to each error, etc.).
* fix bug #42 reported by Andrew DalkeJeremy Hylton2000-07-115-27/+2
| | | | | | | | | | | | | | The Compare close contains a close method that checks to see if there is any unconsumed data in the Compare instance; i.e. if the canonical output file contains more data than was produced by the current test run. This method was never called, allowing differences to go undetected. Fix is to call close after the test is run (after __import__) output/test_long and output/test_popen2 needed trivial changes output/test_select contained lots of text, but test_select.py produced no output
* Neil Schemenauer <nascheme@enme.ucalgary.ca>:Fred Drake2000-07-111-4/+4
| | | | | | | Change a cast, intialize a local, and make some sprintf() format strings type-appropriate (add the "l" to "%d"). Closes SourceForge patch #100737.
* Bug fix: ? and ! were not full aliases for `help' and `shell' as implied inEric S. Raymond2000-07-111-6/+6
| | | | the documentation; the cases `? foo' and `! foo' failed.
* 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)