Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | Add IPV6_ socket options from RFCs 3493 and 3542. Fixes #867012. | Martin v. Löwis | 2003-12-30 | 1 | -0/+71 |
| | |||||
* | Fix erroneus argument parsing of socket.htons() on 64bit big endian | Hye-Shik Chang | 2003-12-17 | 1 | -1/+1 |
| | | | | machines. | ||||
* | Make private/local functions static | Neal Norwitz | 2003-12-13 | 1 | -6/+6 |
| | |||||
* | Cleaning up recursive pieces left in the reorganization. | Gustavo Niemeyer | 2003-12-13 | 1 | -119/+16 |
| | |||||
* | Implement itertools.groupby() | Raymond Hettinger | 2003-12-06 | 1 | -1/+321 |
| | | | | | | | Original idea by Guido van Rossum. Idea for skipable inner iterators by Raymond Hettinger. Idea for argument order and identity function default by Alex Martelli. Implementation by Hye-Shik Chang (with tweaks by Raymond Hettinger). | ||||
* | Fix typos. | Raymond Hettinger | 2003-12-04 | 1 | -2/+2 |
| | |||||
* | Fix [ 846133 ] os.chmod/os.utime/shutil do not work with unicode filenames | Mark Hammond | 2003-12-03 | 1 | -3/+50 |
| | |||||
* | doc nit | Skip Montanaro | 2003-12-02 | 1 | -1/+2 |
| | |||||
* | As discussed on python-dev, added two extractor functions to the | Raymond Hettinger | 2003-12-01 | 1 | -2/+225 |
| | | | | operator module. | ||||
* | Patch #849595: Add socket.shutdown() constants. | Martin v. Löwis | 2003-11-27 | 1 | -2/+25 |
| | |||||
* | Silence GCC warning when asserts are turned off. | Guido van Rossum | 2003-11-24 | 1 | -2/+1 |
| | |||||
* | SF bug 839548: Bug in type's GC handling causes segfaults. | Tim Peters | 2003-11-20 | 2 | -13/+236 |
| | | | | | | | | Also SF patch 843455. This is a critical bugfix. I'll backport to 2.3 maint, but not beyond that. The bugs this fixes have been there since weakrefs were introduced. | ||||
* | Got rid of macglue.h, replacing it by pymactoolbox.h where relevant. | Jack Jansen | 2003-11-20 | 1 | -4/+4 |
| | | | | Cleaned up various things in the toolbox modules. | ||||
* | Getting rid of all the code inside #ifdef macintosh too. | Jack Jansen | 2003-11-20 | 5 | -220/+3 |
| | |||||
* | Getting rid of code dependent on GUSI or the MetroWerks compiler. | Jack Jansen | 2003-11-19 | 4 | -20/+1 |
| | |||||
* | Getting rid of support for the ancient Apple MPW compiler. | Jack Jansen | 2003-11-19 | 2 | -20/+0 |
| | |||||
* | Patch #794400: Let PYTHONSTARTUP influence the compiler flags. | Martin v. Löwis | 2003-11-18 | 1 | -9/+14 |
| | |||||
* | Change ValueErrors to TypeErrors and add PyList_Check() assertions. | Raymond Hettinger | 2003-11-15 | 1 | -4/+6 |
| | |||||
* | Verify heappop argument is a list. | Raymond Hettinger | 2003-11-15 | 1 | -0/+5 |
| | |||||
* | update_refs(): assert that incoming refcounts aren't 0. The comment | Tim Peters | 2003-11-14 | 1 | -0/+19 |
| | | | | | | | | for this function has always claimed that was true, but it wasn't verified before. For the latest batch of "double deallocation" bugs (stemming from weakref callbacks invoked by way of subtype_dealloc), this assert would have triggered (instead of waiting for _Py_ForgetReference to die with a segfault later). | ||||
* | Patch #804543: strdup saved locales. Backported to 2.3. | Martin v. Löwis | 2003-11-13 | 1 | -1/+2 |
| | |||||
* | Improve the implementation of itertools.tee(). | Raymond Hettinger | 2003-11-12 | 1 | -181/+199 |
| | | | | | | | | | | | Formerly, underlying queue was implemented in terms of two lists. The new queue is a series of singly-linked fixed length lists. The new implementation runs much faster, supports multi-way tees, and allows tees of tees without additional memory costs. The root ideas for this structure were contributed by Andrew Koenig and Guido van Rossum. | ||||
* | Patch #839038: Add getsid(2). | Martin v. Löwis | 2003-11-10 | 1 | -0/+22 |
| | |||||
* | Convert heapq.py to a C implementation. | Raymond Hettinger | 2003-11-08 | 1 | -0/+357 |
| | |||||
* | Overallocate target buffer for normalization more early. Fixes #834676. | Martin v. Löwis | 2003-11-06 | 1 | -5/+7 |
| | | | | Backported to 2.3. | ||||
* | * SF patch 835100 - C++ // comments are not allowed. Use /* */ | Gregory P. Smith | 2003-11-03 | 1 | -8/+8 |
| | |||||
* | * Use weakref's of DBCursor objects for the iterator cursors to avoid a | Gregory P. Smith | 2003-11-03 | 1 | -2/+38 |
| | | | | | | | | | | memory leak that would've occurred for all iterators that were destroyed before having iterated until they raised StopIteration. * Simplify some code. * Add new test cases to check for the memleak and ensure that mixing iteration with modification of the values for existing keys works. | ||||
* | * Fix the singlethreaded deadlocks occurring in the simple bsddb interface. | Gregory P. Smith | 2003-11-02 | 1 | -1/+1 |
| | | | | | * Add support for multiple iterator/generator objects at once on the simple bsddb _DBWithCursor interface. | ||||
* | Fix a tuple memory leak when raising DB, DBEnv and DBCursor "object | Gregory P. Smith | 2003-11-02 | 1 | -17/+15 |
| | | | | | | | | | has been closed" exceptions. Adds a DBCursorClosedError exception in the closed cursor case for future use in fixing the legacy bsddb interface deadlock problems due to its use of cursors with DB_INIT_LOCK | DB_THREAD support enabled. | ||||
* | Patch #787189: Explicitly define CTRL on SGI. | Martin v. Löwis | 2003-10-31 | 1 | -0/+6 |
| | |||||
* | Patch #788404: ignore "b" and "t" mode modifiers in posix_popen. | Martin v. Löwis | 2003-10-31 | 1 | -0/+5 |
| | | | | Fixes #703198. Backported to 2.3. | ||||
* | Fix nits in error messages. | Raymond Hettinger | 2003-10-28 | 1 | -4/+4 |
| | |||||
* | Patch #803998: Correctly check for error in SSL_write. | Martin v. Löwis | 2003-10-27 | 1 | -2/+3 |
| | |||||
* | Minor improvements to itertools.tee(): | Raymond Hettinger | 2003-10-26 | 1 | -9/+9 |
| | | | | | | * tee object is no longer subclassable * independent iterators renamed to "itertools.tee_iterator" * fixed doc string typo and added entry in the module doc string | ||||
* | Improvements to coding for itertools.tee(): | Raymond Hettinger | 2003-10-25 | 1 | -3/+26 |
| | | | | | | | | | | | | * Add error checking code to PyList_Append() call. * Replace PyObject_CallMethod(to->outbasket, "pop", NULL) with equivalent in-line code. Inlining is important here because the search for the pop method will occur for every element returned by the iterator. * Make tee's dealloc() a little smarter. If the trailing iterator is being deallocated, then the queue data is no longer needed and can be freed. | ||||
* | Added itertools.tee() | Raymond Hettinger | 2003-10-24 | 1 | -0/+259 |
| | | | | | | It works like the pure python verion except: * it stops storing data after of the iterators gets deallocated * the data queue is implemented with two stacks instead of one dictionary. | ||||
* | - The pwd module incorrectly advertised its struct type as | Guido van Rossum | 2003-10-23 | 1 | -0/+2 |
| | | | | | struct_pwent; this has been renamed to struct_passwd. (The old name is still supported for backwards compatibility.) | ||||
* | Update to Expat 1.95.7; there are no changes to the Expat sources. | Fred Drake | 2003-10-21 | 13 | -1045/+604 |
| | |||||
* | Fix a bunch of typos in documentation, docstrings and comments. | Walter Dörwald | 2003-10-20 | 7 | -8/+8 |
| | | | | (From SF patch #810751) | ||||
* | Removing dead code. | Gustavo Niemeyer | 2003-10-18 | 1 | -11/+0 |
| | |||||
* | Implemented non-recursive SRE matching. | Gustavo Niemeyer | 2003-10-17 | 3 | -462/+767 |
| | |||||
* | Simplify and speedup uses of Py_BuildValue(): | Raymond Hettinger | 2003-10-12 | 15 | -32/+29 |
| | | | | | | * Py_BuildValue("(OOO)",a,b,c) --> PyTuple_Pack(3,a,b,c) * Py_BuildValue("()",a) --> PyTuple_New(0) * Py_BuildValue("O", a) --> Py_INCREF(a) | ||||
* | SF bug #812202: randint is always even | Raymond Hettinger | 2003-10-05 | 1 | -0/+44 |
| | | | | | | | * Added C coded getrandbits(k) method that runs in linear time. * Call the new method from randrange() for ranges >= 2**53. * Adds a warning for generators not defining getrandbits() whenever they have a call to randrange() with too large of a population. | ||||
* | made the SGI INET_ADDRSTRLEN define apply for any compiler on Irix. Both the | Anthony Baxter | 2003-10-04 | 1 | -4/+7 |
| | | | | SGI compiler and GCC seem to need this. | ||||
* | Check for TclError when reading variables. Fixes #807314. | Martin v. Löwis | 2003-10-03 | 1 | -5/+9 |
| | | | | Backported to 2.3. |