summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup: remove test file after it is used.Neal Norwitz2004-02-291-0/+1
|
* Improvements to collections.deque():Raymond Hettinger2004-02-292-8/+90
| | | | | | | | * Add doctests for the examples in the library reference. * Add two methods, left() and right(), modeled after deques in C++ STL. * Apply the new method to asynchat.py. * Add comparison operators to make deques more substitutable for lists. * Replace the LookupErrors with IndexErrors to more closely match lists.
* getDefaultDatabase() should be a toplevel function, not a method of theJack Jansen2004-02-281-48/+46
| | | | preferences object.
* Started on version 0.4: better scheme for finding correct database:Jack Jansen2004-02-281-4/+50
| | | | | | | - Try not only "darwin-7.X.Y" but also "darwin-7.X" and "darwin-7", so far we've never had to create anew database for a minor release. - Distinguish between the various different installs (user-installed MacPython, apple-installed MacPython, other).
* Minor documentation changesVinay Sajip2004-02-283-9/+11
|
* Ignore sizehint argument. Fixes SF #844561.Marc-André Lemburg2004-02-261-10/+4
|
* Fixes SF bug # 778421Gregory P. Smith2004-02-263-4/+29
| | | | | | | | | * Fixed a bug in the compatibility interface set_location() method where it would not properly search to the next nearest key when used on BTree databases. [SF bug id 788421] * Fixed a bug in the compatibility interface set_location() method where it could crash when looking up keys in a hash or recno format database due to an incorrect free().
* Make _spawn_posix be ready for EINTR. waitpid(2) can be interruptedHye-Shik Chang2004-02-241-1/+8
| | | | | by SIGCHLD or sth because no signal is masked before. This fixes an optimized installation problem on FreeBSD libpthread.
* Fix two bugs in the new do_open() implementation for HTTPHandler.Jeremy Hylton2004-02-242-7/+19
| | | | | | | | | Invoke the standard error handlers for non-200 responses. Always supply a "Connection: close" header to prevent the server from leaving the connection open. Downstream users of the socket may attempt recv()/read() with no arguments, which would block if the connection were kept open.
* Reflow long line.Jeremy Hylton2004-02-231-6/+6
|
* Fix wrong character mapping in koi8_u: SF bug #902501.Marc-André Lemburg2004-02-231-1/+1
|
* Added close() (which flushes) to BufferingHandler and tidied ↵Vinay Sajip2004-02-211-2/+10
| | | | MemoryHandler.close() [SF #901330]
* Handler close() functions call flush() [SF #901330]Vinay Sajip2004-02-211-3/+4
|
* adding passing test. testing for g(*Nothing()) where Nothing is a ↵Samuele Pedroni2004-02-212-0/+26
| | | | user-defined iterator.
* Use the right wininstXX.exe, depending onThomas Heller2004-02-201-2/+8
| | | | | | | msvccompiler.get_build_version(). Distributions without a pre-install-script didn't work any longer, we must at least provide the terminating NUL character.
* wininst-6.exe and wininst-7.1.exe are in CVS, so that they can beThomas Heller2004-02-202-0/+0
| | | | | | included in Python distributions for systems other than Windows. Windows installers can be build on non-Windows systems as long as they only include pure python module distributions.
* wininst.exe is no longer used - we now need wininst-6.exe or wininst-7.1.exe.Thomas Heller2004-02-201-0/+0
|
* Recompiled the binary wininst.exe.Thomas Heller2004-02-201-0/+0
| | | | | | | | | | | | | Patch #892660 from Mark Hammond, for distutils bdist_wininst command. install.c: support for a 'pre-install-script', run before anything has been installed. Provides a 'message_box' module function for use by either the pre-install or post-install scripts. bdist_wininst.py: support for pre-install script. Typo (build->built), fixes so that --target-version can still work, even when the distribution has extension modules - in this case, we insist on --skip-build, as we still can't actually build other versions.
* Patch #892660 from Mark Hammond, for distutils bdist_wininst command.Thomas Heller2004-02-201-3/+29
| | | | | | | | | | | install.c: support for a 'pre-install-script', run before anything has been installed. Provides a 'message_box' module function for use by either the pre-install or post-install scripts. bdist_wininst.py: support for pre-install script. Typo (build->built), fixes so that --target-version can still work, even when the distribution has extension modules - in this case, we insist on --skip-build, as we still can't actually build other versions.
* Socket handler closed prior to end of test.Vinay Sajip2004-02-201-0/+1
|
* Copyright year & version number/version date changes.Vinay Sajip2004-02-201-8/+36
| | | | | | | | Exception traceback text is now cached. Closing a handler now removes it from the internal _handlers list. Handlers now chain to Handler.close() from their close() methods. Exception info can be passed as a tuple in exc_info. shutdown() is registered to be called at application exit.
* Copyright year change.Vinay Sajip2004-02-201-17/+67
| | | | | | | Corrections to comments. Tracebacks can now be sent via SocketHandler. SocketHandler now uses exponential backoff strategy. Handlers now chain to Handler.close() from their close() methods.
* Copyright year change.Vinay Sajip2004-02-201-2/+7
| | | | | Corrections to comments. Added RESET_ERROR definition.
* Fix two small bugs: (1) on Windows, pathname munging didn't workGuido van Rossum2004-02-191-2/+4
| | | | | right; (2) write_results_file() didn't return a tuple of two ints when it couldn't create the file. Will backport.
* Get test to work when run from regrtest (add test_main), remove all CRs (^M)sNeal Norwitz2004-02-191-3/+5
|
* Implementation of patch 869468David Ascher2004-02-182-5/+189
| | | | | | | | | | | | | | | Allow the user to create Tkinter.Tcl objects which are just like Tkinter.Tk objects except that they do not initialize Tk. This is useful in circumstances where the script is being run on machines that do not have an X server running -- in those cases, Tk initialization fails, even if no window is ever created. Includes documentation change and tests. Tested on Linux, Solaris and Windows. Reviewed by Martin von Loewis.
* commentary about how bad ConfigParser is doesn't help here, and theFred Drake2004-02-171-3/+1
| | | | | suggested approach to dealing with it isn't a good one; we need a better general purpose config reader, not a distutils-specific reader
* Patch #711838: Allow non-anonymous ftp urls in urllib2.Martin v. Löwis2004-02-151-6/+15
| | | | Backported to 2.3.
* Patch #817379: Allow for absolute ftp paths.Martin v. Löwis2004-02-151-1/+1
| | | | Backported to 2.3.
* Fix typo.Neil Schemenauer2004-02-151-1/+1
|
* further testing indicates that the simplified version of the testFred Drake2004-02-131-4/+6
| | | | | | | | | | (re-using an existing test object class) no longer triggered the original segfault when the fix was backed out; restoring the local test object class to make the test effective the assignment of the ref created at the end does not affect the test, since the segfault happended before weakref.ref() returned; removing the assignment
* We have cp932 support in standard distribution now. And there's nowHye-Shik Chang2004-02-131-4/+3
| | | | no major codepages unsupported by Python, so remove the eg. case.
* use existing test object instead of defining a new classFred Drake2004-02-121-5/+3
|
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-12143-537/+520
| | | | From SF patch #852334.
* Fix indentation error in testGetServByName and rewrite loop to avoid clumsySkip Montanaro2004-02-101-5/+2
| | | | sentinel variable
* Make reversed() transparent with respect to length.Raymond Hettinger2004-02-101-0/+4
|
* Give itertools.repeat() a length method.Raymond Hettinger2004-02-101-1/+7
|
* SF bug #892492: Multiple close() for asyncore.dispatcher.Raymond Hettinger2004-02-081-0/+1
| | | | | | (Contributed by Alexey Klimkin.) Don't keep the file descriptor after the channel is deleted.
* Let reversed() work with itself.Raymond Hettinger2004-02-081-0/+4
|
* Make deque.rotate() smarter. Beef-up related tests.Raymond Hettinger2004-02-081-9/+43
|
* Patch #868499, adds -T option for code coverage. The implementation is aBarry Warsaw2004-02-071-30/+51
| | | | | | fairly simpleminded adaptation of Zope3's test.py -T flag. I also changed some booleans to use True/False where appropriate.
* * Incorporate Skip's suggestions for documentation (explain the word dequeRaymond Hettinger2004-02-071-0/+12
| | | | | comes from and show the differences from lists). * Add a rotate() method.
* no longer support linux1 platformSkip Montanaro2004-02-072-247/+0
|
* no longer support sunos4 platformSkip Montanaro2004-02-074-119/+0
|
* Use collection.deque() instead of a list for a FIFO queue.Raymond Hettinger2004-02-071-5/+10
|
* * Fix ref counting in extend() and extendleft().Raymond Hettinger2004-02-071-0/+4
| | | | * Let deques support reversed().
* Lists work better when popping from the right.Raymond Hettinger2004-02-071-3/+4
|
* Have deques support high volume loads.Raymond Hettinger2004-02-061-0/+12
|
* Fix test failure message (from SF patch #885008)Walter Dörwald2004-02-061-1/+1
|
* Back rev 1.3 out per Raymond's request.Hye-Shik Chang2004-02-061-1/+6
|