Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | SF #950057: itertools.chain doesn't "process" exceptions as they occur | Raymond Hettinger | 2004-05-08 | 1 | -0/+12 |
| | | | | | | | Both cycle() and chain() were handling exceptions only when switching input sources. The patch makes the handle more immediate. Will backport. | ||||
* | Fix _sre.CODESIZE on 64-bit machines in UCS-4 mode. Fixes #931848. | Martin v. Löwis | 2004-05-07 | 1 | -1/+1 |
| | | | | Backported to 2.3. | ||||
* | Fix [ 947405 ] os.utime() raises bad exception for unicode filenames | Mark Hammond | 2004-05-04 | 1 | -1/+6 |
| | |||||
* | Correct the file name of _heapq module. | Hye-Shik Chang | 2004-04-25 | 1 | -0/+0 |
| | |||||
* | * Restore the pure python version of heapq.py. | Raymond Hettinger | 2004-04-19 | 1 | -364/+0 |
| | | | | * Mark the C version as private and only use when available. | ||||
* | * Restore the pure python version of heapq.py. | Raymond Hettinger | 2004-04-19 | 1 | -0/+364 |
| | | | | * Mark the C version as private and only use when available. | ||||
* | Special case normalization of empty strings. Fixes #924361. | Martin v. Löwis | 2004-04-17 | 1 | -0/+7 |
| | | | | Backported to 2.3. | ||||
* | Change two instance of format strings for PyString_FromFormat() to use %ld | Brett Cannon | 2004-04-13 | 1 | -2/+2 |
| | | | | instead of %d . | ||||
* | * Add unittests for iterators that report their length | Raymond Hettinger | 2004-04-12 | 1 | -0/+2 |
| | | | | | | * Document the differences between them * Fix corner cases covered by the unittests * Use Py_RETURN_NONE where possible for dictionaries | ||||
* | Fixes for AF_UNIX support on OS/2: | Andrew MacIntyre | 2004-04-11 | 1 | -0/+4 |
| | | | | | | | | | - return the full size of the sockaddr_un structure, without which bind() fails with EINVAL; - set test_socketserver to use a socket name that meets the form required by the underlying implementation; - don't bother exercising the forking AF_UNIX tests on EMX - its fork() can't handle the stress. | ||||
* | Provide more information representations of repeat() and count(). | Raymond Hettinger | 2004-04-08 | 1 | -2/+27 |
| | |||||
* | OS/2's TCP/IP stack supports AF_UNIX sockets, with the limitation that | Andrew MacIntyre | 2004-04-04 | 1 | -4/+4 |
| | | | | | the socket name must start with /socket32/. Unlike Unix systems, this file never exists in the file system. | ||||
* | OS/2 has support for spawnvp() and spawnvpe() in the C libraries supplied | Andrew MacIntyre | 2004-04-04 | 1 | -0/+229 |
| | | | | | | | with major C compilers (VACPP, EMX+gcc and [Open]Watcom). Also tidy up the export of spawn*() symbols in the os module to match what is found/implemented. | ||||
* | OS/2 VACPP build updates/fixes | Andrew MacIntyre | 2004-03-29 | 1 | -1/+1 |
| | |||||
* | A few more PyThreadState_Get to PyThreadState_GET conversions | Nicholas Bastin | 2004-03-25 | 2 | -2/+2 |
| | |||||
* | Changed random calls to PyThreadState_Get() to use the macro | Nicholas Bastin | 2004-03-24 | 1 | -1/+1 |
| | |||||
* | Make socket.sslerror a subclass of socket.error . | Brett Cannon | 2004-03-23 | 3 | -1/+6 |
| | | | | Added socket.error to the socket module's C API. | ||||
* | Patch #871657: Set EDOM for `nan' return values on FreeBSD and OpenBSD. | Hye-Shik Chang | 2004-03-22 | 1 | -5/+5 |
| | | | | This fixes a problem that math.sqrt(-1) doesn't raise math.error. | ||||
* | Added configure check for broken poll() on some unix systems (MacOS X 10.3) | Nicholas Bastin | 2004-03-21 | 1 | -6/+6 |
| | | | | Fixes SF Bug #850981 | ||||
* | SF bug 847019 datetime.datetime initialization needs more strict checking | Tim Peters | 2004-03-21 | 1 | -2/+10 |
| | | | | | | | | | It's possible to create insane datetime objects by using the constructor "backdoor" inserted for fast unpickling. Doing extensive range checking would eliminate the backdoor's purpose (speed), but at least a little checking can stop honest mistakes. Bugfix candidate. | ||||
* | Bug #920575: Add a workaround for GNU libc nl_langinfo()'s returning NULL. | Hye-Shik Chang | 2004-03-21 | 1 | -2/+6 |
| | | | | (Reported by Matthias Klose) | ||||
* | Improve deque iteration. | Raymond Hettinger | 2004-03-18 | 1 | -1/+102 |
| | | | | | | * The default __reversed__ performed badly, so reintroduced a custom reverse iterator. * Added length transparency to improve speed with map(), list(), etc. | ||||
* | 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. |