summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Add missing docstrings.Raymond Hettinger2004-03-141-0/+67
|
* SF feature request #686323: Minor array module enhancementsRaymond Hettinger2004-03-141-0/+7
| | | | | | | array.extend() now accepts iterable arguments implements as a series of appends. Besides being a user convenience and matching the behavior for lists, this the saves memory and cycles that would be used to create a temporary array object.
* Two issues spotted by Ronald OUssoren:Jack Jansen2004-03-134-3/+2234
| | | | | | - there were no accessor functions for the global per-database fields - packages and their dependencies were installed in order in stead of in reverse order.
* Don't use "dict" as a variable, it shadows the builtin. Spotted byJack Jansen2004-03-131-13/+13
| | | | Bob Ippolito.
* Force option should be applied to a single package, not recursivelyJack Jansen2004-03-131-1/+1
| | | | to its dependencies. Fixes #733819.
* SF patch #911431: robot.txt must be robots.txtRaymond Hettinger2004-03-131-2/+2
| | | | (Contributed by George Yoshida.)
* SF bug #910986: copy.copy fails for array.arrayRaymond Hettinger2004-03-131-0/+7
| | | | Added support for the copy module.
* - Added a downloader using urllib2 in stead of curl, based on codeJack Jansen2004-03-111-51/+137
| | | | | | | donated by Kevin Ollivier. This is now the default downloader. - Added a watcher mechanism, whereby downloaders and unpackers (and, later builders) can give status feedback to the user. When running pimp as a command line tool in verbose mode print this output.
* Make test_coercion.py less sensitive to platform fp quirks. ClosesNeil Schemenauer2004-03-102-333/+348
| | | | SF bug #678265.
* Tidied up the implementations of reversed (including the custom onesRaymond Hettinger2004-03-101-2/+2
| | | | | | | | | | | | | | | | | for xrange and list objects). * list.__reversed__ now checks the length of the sequence object before calling PyList_GET_ITEM() because the mutable could have changed length. * all three implementations are now tranparent with respect to length and maintain the invariant len(it) == len(list(it)) even when the underlying sequence mutates. * __builtin__.reversed() now frees the underlying sequence as soon as the iterator is exhausted. * the code paths were rearranged so that the most common paths do not require a jump.
* Eliminate the double reverse option. It's only use caseRaymond Hettinger2004-03-101-4/+1
| | | | was academic and it was potentially confusing to use.
* Remove calls to currentThread() in _Condition methods that were side-effect.Brett Cannon2004-03-081-2/+0
| | | | | | | | | Side-effects were deemed unnecessary and were causing problems at shutdown time when threads were catching exceptions at start time and then triggering exceptions trying to call currentThread() after gc'ed. Masked the initial exception which was deemed bad. Fixes bug #754449 .
* SF patch #907403: Improvements to cStringIO.writelines()Raymond Hettinger2004-03-081-2/+4
| | | | | | | The writelines() method now accepts any iterable argument and writes the lines one at a time rather than using ''.join(lines) followed by a single write. Results in considerable memory savings and makes the method suitable for use with generator expressions.
* Add a highlight theme for builtin keywords. Python Patch 805830 Nigel RoweKurt B. Kaiser2004-03-089-16/+42
| | | | | | | | | | | | M ClassBrowser.py M ColorDelegator.py M EditorWindow.py M NEWS.txt M PyShell.py M TreeWidget.py M config-highlight.def M configDialog.py M configHandler.py
* Removed spurious import statementVinay Sajip2004-03-081-2/+0
|
* Refactor the copy dispatcher code in copy.py. Simplifies and shortensRaymond Hettinger2004-03-081-35/+17
| | | | the code by grouping common cases together.
* Deal with possible case of having time.tzname[1] containing UTC or GMT.Brett Cannon2004-03-071-2/+2
| | | | | | Since it is known ahead of time that UTC and GMT always have no DST adjustment then just set the isdst value to 0 even if tzname[0] == tzname[1] . Fixes bug #897817 .
* SF patch #910929: Optimize list comprehensionsRaymond Hettinger2004-03-071-0/+1
| | | | | Add a new opcode, LIST_APPEND, and apply it to the code generation for list comprehensions. Reduces the per-loop overhead by about a third.
* SF #904720: dict.update should take a 2-tuple sequence like dict.__init_Raymond Hettinger2004-03-046-34/+48
| | | | | | | | (Championed by Bob Ippolito.) The update() method for mappings now accepts all the same argument forms as the dict() constructor. This includes item lists and/or keyword arguments.
* Fixed invalid syntax.Sjoerd Mullender2004-03-033-3/+3
|
* Have strftime() check its time tuple argument to make sure the tuple's valuesBrett Cannon2004-03-022-1/+57
| | | | | | | | | | are within proper boundaries as specified in the docs. This can break possible code (datetime module needed changing, for instance) that uses 0 for values that need to be greater 1 or greater (month, day, and day of year). Fixes bug #897625.
* Replace left(), right(), and __reversed__() with the more general purposeRaymond Hettinger2004-03-012-10/+35
| | | | | | | __getitem__() and __setitem__(). Simplifies the API, reduces the code size, adds flexibility, and makes deques work with bisect.bisect(), random.shuffle(), and random.sample().
* 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.