summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* From Sam Rushing's Medusa, via SF patch #100858: add & documentAndrew M. Kuchling2000-07-135-141/+263
| | | | os.seteuid(), os.setegid(), os.setreuid(), os.setregid().
* forgot to change copy.copy(m) to m[:]Skip Montanaro2000-07-131-2/+2
|
* Propagate the current exception in get_inprogress_dict() -- it doesn'tVladimir Marangozov2000-07-121-1/+0
| | | | need to be cleared.
* deleted obsolete SYMANTEC__CFM68K__ testsSkip Montanaro2000-07-121-8/+0
|
* delete obsolete SYMANTEC__CFM68K__ #ifdefsSkip Montanaro2000-07-124-20/+0
|
* fixed semantics of commonprefix to work by path elements instead ofSkip Montanaro2000-07-124-12/+53
| | | | characters.
* replace PyXXX_Length calls with PyXXX_Size callsJeremy Hylton2000-07-1214-29/+30
|
* change abstract size functions PySequence_Size &c.Jeremy Hylton2000-07-123-15/+21
| | | | add macros for backwards compatibility with C source
* Add "exceptions" to list of built-in modules for the sake ofGuido van Rossum2000-07-121-0/+1
| | | | | | sys.builtin_module_names. (Noticed by Toby Dickenson.) [Tim, please test!]
* Add "exceptions" to list of built-in modules for the sake ofGuido van Rossum2000-07-121-0/+1
| | | | sys.builtin_module_names. (Noticed by Toby Dickenson.)
* Fixed up some ANSIfications.Sjoerd Mullender2000-07-122-5/+5
|
* apply patch #100868 from Moshe Zadka:Greg Stein2000-07-121-5/+10
| | | | refactor the copying of file data. new: shutil.copyfileobj(fsrc, fdst)
* debug_instance(): Use the same %p format directive as withBarry Warsaw2000-07-121-6/+3
| | | | | | debug_cycle(), and don't cast the pointer to a long. Neither needs the literal `0x' prefix as %p automatically inserts this (on Linux at least).
* Second try: checks whether right shift extends the sign bit.Vladimir Marangozov2000-07-122-17/+32
| | | | | Adds caching and reverts back the 'return' to 'exit()' in AC_TRY_RUN as recommended by the Autoconf documentation.
* Convert coding style to be internally consistent and similar to theFred Drake2000-07-121-545/+531
| | | | | rest of the Python C code: space between "if", "for" and "(", no space between "(", ")" and function call parameters, etc.
* Always use the :funcname part of the format specifier for PyArg_ParseTuple()Fred Drake2000-07-121-5/+5
| | | | so we get better error messages.
* Documentation for the gc module. Text from Neil SchemenauerFred Drake2000-07-123-0/+108
| | | | | <nascheme@enme.ucalgary.ca>, markup & minor revisions from Fred Drake.
* Worm around MSVC6 error on single string literal > 2Kb.Tim Peters2000-07-121-2/+7
|
* Remove extra argument to method callAndrew M. Kuchling2000-07-121-1/+1
|
* Checks whether right shift extends the sign bit.Vladimir Marangozov2000-07-121-415/+423
| | | | | | | Patch by Thomas Wouters <thomas@xs4all.net> with small changes of mine (in main(), use return instead of exit). Closes patch #100832
* Checks whether right shift extends the sign bit.Vladimir Marangozov2000-07-121-0/+13
| | | | | | | | Patch by Thomas Wouters <thomas@xs4all.net> with small changes of mine (in main(), use return instead of exit). Closes patch #100832 (but I can't assign it to myself, nor close it -- sorry)
* Fix typo in error messageAndrew M. Kuchling2000-07-121-1/+1
|
* 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.