summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tag 'r211c1'.v2.1.1c1cvs2svn2001-07-131-0/+1
|
* Expand the blob on Solaris to mention passing '-Xc' to compile PythonThomas Wouters2001-07-131-5/+6
| | | | | correctly. Note that 'faulty' should actually be spelled 'fawlty', but I don't want those bugreports assigned to me ;)
* Add credit for a last-minute fix in the re documentation.Fred Drake2001-07-121-0/+1
|
* Fix return value for m.group() for groups not in the part of the RE thatFred Drake2001-07-121-1/+1
| | | | matched; reported by Paul Moore.
* Preliminary NEWS entry for 2.1.1c1Thomas Wouters2001-07-121-0/+69
|
* Net result of Tim's checkins 2.28 through 2.31:Thomas Wouters2001-07-121-12/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | - SF but #417587: compiler warnings compiling 2.1. Repaired *some* of the SGI compiler warnings Sjoerd Mullender reported. - Minor fiddling related to SF patch 416251 2.1c1 mmapmodule: unused vrbl cleanup - Fix the .find() method for memory maps. 1) it didn't obey the "start" parameter (and when it does, we must validate the value) 2) the return value needs to be an absolute index, rather than relative to some arbitrary point in the file (checking CVS, it appears this method never worked; these changes bring it into line with typical .find() behavior) - Fix new compiler warnings. Also boost "start" from (C) int to long and return a (C) long: PyArg_ParseTuple and Py_BuildValue may not let us get at the size_t we really want, but C int is clearly too small for a 64-bit box, and both the start parameter and the return value should work for large mapped files even on 32-bit boxes. The code really needs to be rethought from scratch (not by me, though ...).
* Backport Tim's checkin 1.9:Thomas Wouters2001-07-121-4/+4
| | | | | SF bug 418615: regular expression bug in pipes.py. Obviously bad regexps, spotted by Jeffery Collins.
* Backport Tim's checkin 1.7:Thomas Wouters2001-07-121-1/+1
| | | | | | SF bug 418296: WinMain.c should use WIN32_LEAN_AND_MEAN. I believe Kevin Rodgers here! The old WINDOWS_LEAN_AND_MEAN has, AFAICT, always been wrong.
* Re-do the broken-nice() patch to break less platforms. Hopefully none :PThomas Wouters2001-07-115-9/+86
| | | | | | | Also note that it isn't just Linux nice() that is broken: at least FreeBSD and BSDI also have this problem. os.nice() should probably just be emulated using getpriority()/setpriority(), if they are available, but that isn't worth putting in 2.1.1.
* Move the section on concrete numeric objects before the section onFred Drake2001-07-111-249/+249
| | | | | | | | | concrete sequence objects, since their API is simpler. This is in response to a comment in SF bug #440037. (Does this really belong in the bugfix release? Yes: this is a readability bug, and those are important in the documentation.)
* Added information about the timeout parameter to the poll() method forFred Drake2001-07-111-1/+5
| | | | | | polling objects. This closes SF bug #439823. Fixed a minor markup bug.
* Patch #439995 (slightly modified from the uploaded version):Thomas Wouters2001-07-114-4/+24
| | | | | | | Work around Linux's nonstandard nice() systemcall, which does not return the new priority. This closes SF bug #439990.
* Backport of Guido's checkins of acconfig.h (1.50), configure.in (1.224) andThomas Wouters2001-07-115-262/+331
| | | | | | | | | | | readline.c (2.36), and re-generated config.h.in and configure: SF Patch #432457 by Jason Tishler: support for readline 4.2. This patch allows the readline module to build cleanly with GNU readline 4.2 without breaking the build for earlier GNU readline versions. The configure script checks for the presence of rl_completion_matches in libreadline.
* Backport of the socketserver test, including output file (which is stillThomas Wouters2001-07-111-0/+1
| | | | | | | | | | necessary in the 2.1 branch.) Guido's original checkin message: A test suite for SocketServer.py that exposes the various bugs just fixed. Regrettably, this must be run manually -- somehow the I/O redirection of the regression test breaks the test. When run under the regression test, this raises ImportError with a warning to that effect.
* This commit was manufactured by cvs2svn to create branchcvs2svn2001-07-1116-0/+6784
| | | | 'release21-maint'.
* Backport of Guido's checkin 1.25:Thomas Wouters2001-07-111-6/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | Fix various serious problems: - The ThreadingTCPServer class and its derived classes were completely broken because the main thread would close the request before the handler thread had time to look at it. This was introduced by Ping's close_request() patch. The fix moves the close_request() calls to after the handler has run to completion in the BaseServer class and the ForkingMixIn class; when using the ThreadingMixIn, closing the request is the handler's responsibility. - The ForkingUDPServer class has always been been broken because the socket was closed in the child before calling the handler. I fixed this by simply not calling server_close() in the child at all. - I cannot get the UnixDatagramServer class to work at all. The recvfrom() call doesn't return a meaningful client address. I added a comment to this effect. Maybe it works on other Unix versions. - The __all__ variable was missing ThreadingMixIn and ForkingMixIn. - Bumped __version__ to "0.4". - Added a note about the test suite (to be checked in shortly).
* Backport of Tim's checkin 2.178:Thomas Wouters2001-07-111-11/+28
| | | | | | | | | | | SF bug #438295: [Windows] __init__.py cause strange behavior Probable fix (the bug report doesn't have enough info to say for sure). find_init_module(): Insist on a case-sensitive match for __init__ files. Given __INIT__.PY instead, find_init_module() thought that was fine, but the later attempt to do find_module("__INIT__.PY") didn't and its caller silently suppressed the resulting ImportError. Now find_init_module() refuses to accept __INIT__.PY to begin with.
* Backport Tim's checkin 1.17:Thomas Wouters2001-07-111-1/+1
| | | | | | | | | SF patch #440144: Tests and minor bugfix for uu module decode(): While writing tests for uu.py, Nick Mathewson discovered that the 'Truncated input file' exception could never get raised, because its "if not str:" test was actually testing the builtin function "str", not the local string vrbl "s" as intended.
* Add another name.Fred Drake2001-07-101-0/+1
|
* Corrected the refcount information for PyList_SET_ITEM().Fred Drake2001-07-101-1/+1
|
* Document PyObject_New(), PyObject_NewVar(), PyObject_Init(),Fred Drake2001-07-101-24/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PyObject_InitVar(), PyObject_Del(), PyObject_NEW(), PyObject_NEW_VAR(), and PyObject_DEL(). Add notes to PyMem_Malloc() and PyMem_New() about the memory buffers not being initialized. This fixes SF bug #439012. Added explicit return value information for PyList_SetItem(), PyDict_SetItem(), and PyDict_SetItemString(). Corrected return type for PyList_SET_ITEM(). Fixed index entries in the descriptions of PyLong_AsLong() and PyLong_AsUnignedLong(). This fixes the API manual portion of SF bug #440037. Note that the headers properly declare everything as 'extern "C"' for C++ users. Document _Py_NoneStruct. Added links to the Extending & Embedding manual for PyArg_ParseTuple() and PyArg_ParseTupleAndKeywords(). Added note that PyArg_Parse() should not be used in new code. Fix up a few style nits -- avoid "e.g." and "i.e." -- these make translation more difficult, as well as reading the English more difficult for non-native speakers.
* Added descriptions for some modules that previously did not have anyFred Drake2001-07-101-9/+26
| | | | information about them, based on comments from Jack Jansen.
* Fix for SF bug #436525, reported by Greg Kochanski:Thomas Wouters2001-07-091-2/+2
| | | | | | The block/unblock thread macros are called 'Py_BLOCK_THREADS' and 'Py_UNBLOCK_THREADS', not 'Py_BEGIN_BLOCK_THREADS' and 'Py_BEGIN_UNBLOCK_THREADS'.
* SF bug #439104: Tuple richcompares has code-typo.Tim Peters2001-07-062-2/+2
| | | | | Symptom: (1, 2, 3) <= (1, 2) returned 1. Also an isomorphic error was in the list richcompare code.
* When reading a continuation line, make sure we still use the transformedFred Drake2001-07-062-1/+9
| | | | | | | name when filling in the internal data structures, otherwise we incorrectly raise a KeyError. This fixes SF bug #432369.
* Explain the exit code for the wait() method, including a reference toFred Drake2001-07-061-1/+6
| | | | | | the os.W*() functions used to interpret the return value. This fixes SF bug #429361.
* The fpectl module does not work on Windows, so remove Windows from theFred Drake2001-07-051-2/+2
| | | | | | \platform statement. Also fix a minor style consistency nit in an example.
* Allow underscores in tag names and quote characters in unquoted attributeFred Drake2001-07-051-2/+2
| | | | | | | values. The change for attribute values matches the way Mozilla and Navigator view the world, at least. This closes SF bug #436621.
* Only write out one blank line before the request data.Fred Drake2001-07-042-3/+3
| | | | This closes SF patch #419459.
* Marked the parameters to Stats.print_*() as optional.Fred Drake2001-07-021-3/+3
| | | | This closes SF bug #438032.
* Avoid using os.path.normcase() on sys.path elements; doing so causes pathsFred Drake2001-07-021-19/+22
| | | | | | to be presented in an unfamiliar case on case-preserving filesystems. This closes SF patch #436173.
* Added another name.Fred Drake2001-07-021-0/+1
|
* Update to reflect Python 2.1.1 release planning.Fred Drake2001-07-022-2/+2
|
* 2.1.1c1 WIndows fiddling, plus patchlevel.h.Tim Peters2001-07-024-7/+11
|
* Use the more conventional "self" as the name of the self parameter in anFred Drake2001-06-291-1/+1
| | | | example. It actually confused a reader.
* Correct a markup error for an accented character.Fred Drake2001-06-291-1/+1
| | | | Reported by Milan Zamazal <pdm@zamazal.org>.
* Removed some stray periods, and fix up a number of visible markupFred Drake2001-06-291-20/+22
| | | | | | | consistency errors (mostly omitted "()" at the end of function and method names). Reported by Milan Zamazal <pdm@zamazal.org>.
* Another name.Fred Drake2001-06-291-0/+1
|
* SourceForge bug #437041:Fred Drake2001-06-291-8/+8
| | | | | Use a portable format in the example that creates a timestamp suitable for use in email, also updating it and the footnote from RFC 822 to RFC 2822.
* Another name.Fred Drake2001-06-291-0/+1
|
* Simplify an example based on comment from Thomas Holenstein <thomas@hex.ch>:Fred Drake2001-06-291-4/+1
| | | | | Do not use an extra flag variable to test only once in one subsequent if statement.
* Backport Tim's checkin 1.12:Thomas Wouters2001-06-271-1/+1
| | | | | doctest systematically leaked memory when handling an exception in an example (an obvious trackback cycle). Repaired.
* Backport of Tim's checkin 1.35:Thomas Wouters2001-06-271-0/+7
| | | | | | | | | SF bug 434186: 0x80000000/2 != 0x80000000>>1 i_divmod: New and simpler algorithm. Old one returned gibberish on most boxes when the numerator was -sys.maxint-1. Oddly enough, it worked in the release (not debug) build on Windows, because the compiler optimized away some tricky sign manipulations that were incorrect in this case. Makes you wonder <wink> ...
* Backport of Tim's checkin 2.57:Thomas Wouters2001-06-271-23/+17
| | | | | | | | | SF bug 434186: 0x80000000/2 != 0x80000000>>1 i_divmod: New and simpler algorithm. Old one returned gibberish on most boxes when the numerator was -sys.maxint-1. Oddly enough, it worked in the release (not debug) build on Windows, because the compiler optimized away some tricky sign manipulations that were incorrect in this case. Makes you wonder <wink> ...
* Backport Tim's checkin 2.247:Thomas Wouters2001-06-271-2/+3
| | | | | | SF bug 433228: repr(list) woes when len(list) big call_object: If the object isn't callable, display its type in the error msg rather than its repr.
* Set PYTHONHOMEHELP to 2.1Thomas Wouters2001-06-271-1/+1
|
* Backport Tim's checkin 1.26 (patch probably by Michael Hudson, not Hundson):Thomas Wouters2001-06-271-13/+14
| | | | | | | SF bug 431772: traceback.print_exc() causes traceback Patch from Michael Hundson. format_exception_only() blew up when trying to report a SyntaxError from a string input (line is None in this case, but it assumed a string).
* Backport Tim's checkin 2.201:Thomas Wouters2001-06-271-10/+54
| | | | | | | | SF bug 430991: wrong co_lnotab Armin Rigo pointed out that the way the line-# table got built didn't work for lines generating more than 255 bytes of bytecode. Fixed as he suggested, plus corresponding changes to pyassem.py, plus added some long overdue docs about this subtle table to compile.c.
* Backport Tim's checkin 1.20:Thomas Wouters2001-06-272-34/+28
| | | | | | | | SF bug 430991: wrong co_lnotab Armin Rigo pointed out that the way the line-# table got built didn't work for lines generating more than 255 bytes of bytecode. Fixed as he suggested, plus corresponding changes to pyassem.py, plus added some long overdue docs about this subtle table to compile.c.
* Backport Tim's checkin 1.97:Thomas Wouters2001-06-271-0/+1
| | | | | | | | SF bug 430991: wrong co_lnotab Armin Rigo pointed out that the way the line-# table got built didn't work for lines generating more than 255 bytes of bytecode. Fixed as he suggested, plus corresponding changes to pyassem.py, plus added some long overdue docs about this subtle table to compile.c.