Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Speedup the inner loops for dropwhile(), islice(), ifilter(), and | Raymond Hettinger | 2004-03-17 | 1 | -9/+17 |
| | | | | ifilterfalse(). | ||||
* | fixes SF bug 914019 - DB.has_key was not honoring its txn argument | Gregory P. Smith | 2004-03-16 | 1 | -2/+2 |
| | |||||
* | SF feature request #686323: Minor array module enhancements | Raymond Hettinger | 2004-03-14 | 1 | -9/+34 |
| | | | | | | | 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. | ||||
* | Update the array overallocation scheme to match the approach used for | Raymond Hettinger | 2004-03-14 | 1 | -61/+76 |
| | | | | | | | | lists. Speeds append() operations and reduces memory requirements (because of more conservative overallocation). Paves the way for the feature request for array.extend() to support arbitrary iterable arguments. | ||||
* | SF bug #910986: copy.copy fails for array.array | Raymond Hettinger | 2004-03-13 | 1 | -0/+15 |
| | | | | Added support for the copy module. | ||||
* | SF patch #907403: Improvements to cStringIO.writelines() | Raymond Hettinger | 2004-03-08 | 1 | -28/+23 |
| | | | | | | | 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. | ||||
* | Special case endpoint access for speed. | Raymond Hettinger | 2004-03-04 | 1 | -10/+18 |
| | |||||
* | Have strftime() check its time tuple argument to make sure the tuple's values | Brett Cannon | 2004-03-02 | 2 | -2/+44 |
| | | | | | | | | | | 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 purpose | Raymond Hettinger | 2004-03-01 | 1 | -123/+69 |
| | | | | | | | __getitem__() and __setitem__(). Simplifies the API, reduces the code size, adds flexibility, and makes deques work with bisect.bisect(), random.shuffle(), and random.sample(). | ||||
* | Add pystack definition to Misc/gdbinit with some explanation of its behavior | Skip Montanaro | 2004-03-01 | 1 | -0/+3 |
| | | | | | and add flag comments to ceval.c and main.c alerting people to the coupling between pystack and the layout of those files. | ||||
* | Make deque_type static so namespace is not polluted. | Neal Norwitz | 2004-02-29 | 1 | -2/+2 |
| | |||||
* | Improvements to collections.deque(): | Raymond Hettinger | 2004-02-29 | 1 | -3/+117 |
| | | | | | | | | * 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. | ||||
* | Get rid of unused variable | Neal Norwitz | 2004-02-28 | 1 | -1/+0 |
| | |||||
* | Speed-up the joiner call by avoiding Py_BuildValue(). | Raymond Hettinger | 2004-02-27 | 1 | -1/+5 |
| | |||||
* | made cPickle fall back to the copy_reg/reduce protocol, | Christian Tismer | 2004-02-26 | 1 | -0/+5 |
| | | | | | if a function cannot be stored as global. This is for compatibility with pickle.py . | ||||
* | Fixes SF bug # 778421 | Gregory P. Smith | 2004-02-26 | 1 | -2/+10 |
| | | | | | | | | | * 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(). | ||||
* | Remove gcc warning from using "main". Use METH_NOARGS instead of METH_VARARGS | Neal Norwitz | 2004-02-19 | 1 | -5/+3 |
| | |||||
* | Implementation of patch 869468 | David Ascher | 2004-02-18 | 2 | -10/+63 |
| | | | | | | | | | | | | | | | 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. | ||||
* | Make socketmodule compile again on a modern Linux (that supports Bluetooth). | Anthony Baxter | 2004-02-16 | 1 | -1/+1 |
| | | | | The Bluetooth code was obviously never tested on Linux. | ||||
* | Fix docstrings to mention the correct function | Neal Norwitz | 2004-02-16 | 1 | -2/+2 |
| | |||||
* | - Fixing annoying warnings. | Gustavo Niemeyer | 2004-02-14 | 2 | -9/+12 |
| | |||||
* | - Fixed #853061: allow BZ2Compressor.compress() to receive an empty string | Gustavo Niemeyer | 2004-02-14 | 1 | -0/+3 |
| | | | | as parameter. | ||||
* | Replace backticks with repr() or "%r" | Walter Dörwald | 2004-02-12 | 1 | -20/+20 |
| | | | | From SF patch #852334. | ||||
* | need to initialize ob_type slot at run-time, at least on cygwin | Skip Montanaro | 2004-02-10 | 1 | -1/+2 |
| | |||||
* | remove support for missing ANSI C header files (limits.h, stddef.h, etc). | Skip Montanaro | 2004-02-10 | 4 | -12/+2 |
| | |||||
* | Give itertools.repeat() a length method. | Raymond Hettinger | 2004-02-10 | 1 | -1/+14 |
| | |||||
* | Make deque.rotate() smarter. Beef-up related tests. | Raymond Hettinger | 2004-02-08 | 1 | -4/+11 |
| | |||||
* | * Incorporate Skip's suggestions for documentation (explain the word deque | Raymond Hettinger | 2004-02-07 | 1 | -4/+44 |
| | | | | | comes from and show the differences from lists). * Add a rotate() method. | ||||
* | Remove support for --without-universal-newlines (see PEP 11). | Skip Montanaro | 2004-02-07 | 1 | -22/+0 |
| | |||||
* | * Fix ref counting in extend() and extendleft(). | Raymond Hettinger | 2004-02-07 | 1 | -4/+93 |
| | | | | * Let deques support reversed(). | ||||
* | Have deques support high volume loads. | Raymond Hettinger | 2004-02-06 | 1 | -23/+74 |
| | |||||
* | Add FreeBSD support for bluetooth sockets. (SF Patch #888148) | Hye-Shik Chang | 2004-02-02 | 1 | -0/+4 |
| | |||||
* | Add FreeBSD support for bluetooth sockets. | Hye-Shik Chang | 2004-02-02 | 1 | -14/+38 |
| | | | | (SF Patch #888148, reviewed by loewis) | ||||
* | Patch #874083: Bluetooth support for socket module. | Martin v. Löwis | 2004-01-31 | 2 | -0/+113 |
| | |||||
* | Fix spelling. | Raymond Hettinger | 2004-01-29 | 1 | -2/+2 |
| | |||||
* | * Move collections.deque() in from the sandbox | Raymond Hettinger | 2004-01-29 | 1 | -0/+582 |
| | | | | | | * Add unittests, newsitem, and whatsnew * Apply to Queue.py mutex.py threading.py pydoc.py and shlex.py * Docs are forthcoming | ||||
* | Add missed entry for cjkcodecs._iso_2022_kr. | Hye-Shik Chang | 2004-01-28 | 1 | -0/+1 |
| | |||||
* | Fix MSVC6 warnings. (spotted by Tim Peters) | Hye-Shik Chang | 2004-01-23 | 20 | -48/+48 |
| | |||||
* | pwd_getpwuid(), pwd_getpwnam(): Patch # 868499, improvement to the error | Barry Warsaw | 2004-01-20 | 1 | -2/+4 |
| | | | | messages. | ||||
* | grp_getgrgid(), grp_getgrnam(): Patch # 868499, improvement to the error | Barry Warsaw | 2004-01-20 | 1 | -2/+2 |
| | | | | messages. | ||||
* | Removing TODO comment for None keys, as suggested by Neal Norwitz. | Gustavo Niemeyer | 2004-01-20 | 1 | -1/+1 |
| | |||||
* | When key is None, give up if _DB_get_type() returns -1 as well. | Gustavo Niemeyer | 2004-01-20 | 1 | -0/+2 |
| | |||||
* | Fixing #880531: raise TypeError when trying to use a None key with RECNO | Gustavo Niemeyer | 2004-01-20 | 1 | -0/+7 |
| | | | | or QUEUE database. | ||||
* | Add CJK codecs support as discussed on python-dev. (SF #873597) | Hye-Shik Chang | 2004-01-17 | 52 | -0/+40584 |
| | | | | | Several style fixes are suggested by Martin v. Loewis and Marc-Andre Lemburg. Thanks! | ||||
* | Remove support for SunOS 4. | Skip Montanaro | 2004-01-17 | 4 | -34/+1 |
| | | | | Remove BAD_EXEC_PROTOYPE (leftover from IRIX 4 demolition). | ||||
* | Make parameter names in docstring more mnemonic | Andrew M. Kuchling | 2004-01-16 | 1 | -1/+1 |
| | |||||
* | The format of the string data used in the imageop module is described | Sjoerd Mullender | 2004-01-10 | 1 | -33/+108 |
| | | | | | | | | | | | | | | | | | | as "This is the same format as used by gl.lrectwrite() and the imgfile module." This implies a certain byte order in multi-byte pixel formats. However, the code was originally written on an SGI (big-endian) and *uses* the fact that bytes are stored in a particular order in ints. This means that the code uses and produces different byte order on little-endian systems. This fix adds a module-level flag "backward_compatible" (default not set, and if not set, behaves as if set to 1--i.e. backward compatible) that can be used on a little-endian system to use the same byte order as the SGI. Using this flag it is then possible to prepare SGI-compatible images on a little-endian system. This patch is the result of a (small) discussion on python-dev and was submitted to SourceForge as patch #874358. | ||||
* | SF Patch #864863: Bisect C implementation | Raymond Hettinger | 2004-01-05 | 1 | -0/+228 |
| | | | | (Contributed by Dmitry Vasiliev.) | ||||
* | FIx unicodefilename support of posix.uname(). This fixes test_unicode_file | Hye-Shik Chang | 2004-01-04 | 1 | -1/+2 |
| | | | | failure on FreeBSD. | ||||
* | Convert return value to boolean. | Raymond Hettinger | 2004-01-04 | 1 | -1/+1 |
| |