Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue 2246: itertools grouper object did not participate in GC (should be ↵ | Raymond Hettinger | 2008-03-06 | 1 | -5/+15 |
| | | | | backported). | ||||
* | Small code cleanup. | Raymond Hettinger | 2008-03-05 | 1 | -4/+2 |
| | |||||
* | C implementation of itertools.permutations(). | Raymond Hettinger | 2008-03-05 | 1 | -0/+274 |
| | |||||
* | Issue 1872: Changed the struct module typecode from 't' to '?', for | Thomas Heller | 2008-03-05 | 4 | -11/+20 |
| | | | | compatibility with PEP3118. | ||||
* | Fix refleak in chain(). | Raymond Hettinger | 2008-03-04 | 1 | -1/+1 |
| | |||||
* | Try to fix the build for PY_LINUX. | Thomas Heller | 2008-03-04 | 1 | -0/+1 |
| | |||||
* | Merged changes from libffi3-branch. | Thomas Heller | 2008-03-04 | 97 | -3423/+38619 |
| | | | | | | | | | The bundled libffi copy is now in sync with the recently released libffi3.0.4 version, apart from some small changes to Modules/_ctypes/libffi/configure.ac. I gave up on using libffi3 files on os x. Instead, static configuration with files from pyobjc is used. | ||||
* | Beef-up docs and tests for itertools. Fix-up end-case for product(). | Raymond Hettinger | 2008-03-04 | 1 | -4/+1 |
| | |||||
* | Only DECREF if ret != NULL | Neal Norwitz | 2008-03-03 | 1 | -1/+1 |
| | |||||
* | Handle 0-tuples which can be singletons. | Raymond Hettinger | 2008-03-02 | 1 | -1/+1 |
| | |||||
* | Simplify code for itertools.product(). | Raymond Hettinger | 2008-03-02 | 1 | -13/+2 |
| | |||||
* | Updated to pysqlite 2.4.1. Documentation additions will come later. | Gerhard Häring | 2008-02-29 | 10 | -202/+483 |
| | |||||
* | Handle the repeat keyword argument for itertools.product(). | Raymond Hettinger | 2008-02-29 | 1 | -5/+27 |
| | |||||
* | Add alternate constructor for itertools.chain(). | Raymond Hettinger | 2008-02-28 | 1 | -1/+25 |
| | |||||
* | Have itertools.chain() consume its inputs lazily instead of building a tuple ↵ | Raymond Hettinger | 2008-02-28 | 1 | -51/+51 |
| | | | | of iterators at the outset. | ||||
* | The empty tuple is usually a singleton with a much higher refcnt than 1 | Christian Heimes | 2008-02-28 | 1 | -2/+5 |
| | |||||
* | One too many decrefs. | Raymond Hettinger | 2008-02-27 | 1 | -3/+1 |
| | |||||
* | Add itertools.combinations(). | Raymond Hettinger | 2008-02-26 | 1 | -1/+225 |
| | |||||
* | Patch #1691070 from Roger Upole: Speed up PyArg_ParseTupleAndKeywords() and ↵ | Christian Heimes | 2008-02-26 | 1 | -0/+18 |
| | | | | | | improve error msg My tests don't show the promised speed up of 10%. The code is as fast as the old code for simple cases and slightly faster for complex cases with several of args and kwargs. But the patch simplifies the code, too. | ||||
* | The contains function raised a gcc warning. The new code is copied straight ↵ | Christian Heimes | 2008-02-26 | 1 | -5/+12 |
| | | | | from py3k. | ||||
* | Whitespace normalization | Neal Norwitz | 2008-02-26 | 1 | -9/+9 |
| | |||||
* | Coerced PyBool_Type to be able to compare it. | Facundo Batista | 2008-02-25 | 1 | -2/+2 |
| | |||||
* | Make sure the itertools filter functions give the same performance for ↵ | Raymond Hettinger | 2008-02-25 | 1 | -2/+2 |
| | | | | func=bool as func=None. | ||||
* | Issue 2168. gdbm and dbm needs to be iterable; this fixes a | Facundo Batista | 2008-02-25 | 2 | -3/+68 |
| | | | | failure in the shelve module. Thanks Thomas Herve. | ||||
* | Fix typo of hexidecimal | Neal Norwitz | 2008-02-24 | 1 | -1/+1 |
| | |||||
* | Get ctypes working on the Alpha (Tru64). The problem was that there | Neal Norwitz | 2008-02-24 | 1 | -1/+1 |
| | | | | | | were two module_methods and the one used depended on the order the modules were loaded. By making the test module_methods static, it is not exported and the correct version is picked up. | ||||
* | #1506171: added operator.methodcaller(). | Georg Brandl | 2008-02-23 | 1 | -0/+138 |
| | |||||
* | #1826: allow dotted attribute paths in operator.attrgetter. | Georg Brandl | 2008-02-23 | 1 | -3/+48 |
| | |||||
* | Patch #1957: syslogmodule: Release GIL when calling syslog(3) | Christian Heimes | 2008-02-23 | 1 | -0/+2 |
| | |||||
* | Issue 1089358. Adds the siginterrupt() function, that is just a | Facundo Batista | 2008-02-23 | 1 | -0/+33 |
| | | | | | | wrapper around the system call with the same name. Also added test cases, doc changes and NEWS entry. Thanks Jason and Ralf Schmitt. | ||||
* | Patch #1759: Backport of PEP 3129 class decorators | Christian Heimes | 2008-02-23 | 1 | -10/+25 |
| | | | | with some help from Georg | ||||
* | Add more comments | Raymond Hettinger | 2008-02-23 | 1 | -4/+4 |
| | |||||
* | Added future_builtins, which contains PEP 3127 compatible versions of hex() ↵ | Eric Smith | 2008-02-23 | 1 | -0/+69 |
| | | | | and oct(). | ||||
* | Improve the implementation of itertools.product() | Raymond Hettinger | 2008-02-23 | 1 | -12/+43 |
| | | | | | | | | * Fix-up issues pointed-out by Neal Norwitz. * Add extensive comments. * The lz->result variable is now a tuple instead of a list. * Use fast macro getitem/setitem calls so most code is in-line. * Re-use the result tuple if available (modify in-place instead of copy). | ||||
* | First draft for itertools.product(). Docs and other updates forthcoming. | Raymond Hettinger | 2008-02-22 | 1 | -1/+212 |
| | |||||
* | configure.ac: Remove the configure check for _Bool, it is already done in the | Thomas Heller | 2008-02-21 | 3 | -3162/+3023 |
| | | | | | top-level Python configure script. configure, fficonfig.h.in: regenerated. | ||||
* | Backport of PEP 3101, Advanced String Formatting, from py3k. | Eric Smith | 2008-02-17 | 1 | -0/+32 |
| | | | | | | | | | | | | | | | Highlights: - Adding PyObject_Format. - Adding string.Format class. - Adding __format__ for str, unicode, int, long, float, datetime. - Adding builtin format. - Adding ''.format and u''.format. - str/unicode fixups for formatters. The files in Objects/stringlib that implement PEP 3101 (stringdefs.h, unicodedefs.h, formatter.h, string_format.h) are identical in trunk and py3k. Any changes from here on should be made to trunk, and changes will propogate to py3k). | ||||
* | Issue 2112. mmap does not raises EnvironmentError no more, but | Facundo Batista | 2008-02-17 | 1 | -1/+4 |
| | | | | a subclass of it. Thanks John Lenton. | ||||
* | Crashers of the day: Py_CLEAR must be used when there is a chance that the | Amaury Forgeot d'Arc | 2008-02-16 | 2 | -3/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | function can be called recursively. This was discussed in issue1020188. In python codebase, all occurrences of Py_[X]DECREF(xxx->yyy) are suspect, except when they appear in tp_new or tp_dealloc functions, or when the member cannot be of a user-defined class. Note that tp_init is not safe. I do have a (crashing) example for every changed line. Is it worth adding them to the test suite? Example: class SpecialStr(str): def __del__(self): s.close() import cStringIO s = cStringIO.StringIO(SpecialStr("text")) s.close() # Segfault | ||||
* | Bug #2111: mmap segfaults when trying to write a block opened with PROT_READ | Christian Heimes | 2008-02-15 | 1 | -0/+4 |
| | | | | Thanks to Thomas Herve for the fix. | ||||
* | Implemented Martin's suggestion to clear the free lists during the garbage ↵ | Christian Heimes | 2008-02-14 | 1 | -0/+22 |
| | | | | collection of the highest generation. | ||||
* | Add pickle support to ctypes types. | Thomas Heller | 2008-02-13 | 4 | -1/+91 |
| | |||||
* | #2063: correct order of utime and stime in os.times() | Georg Brandl | 2008-02-13 | 1 | -2/+2 |
| | | | | result on Windows. | ||||
* | dict.copy() rises from the ashes. Revert r60687. | Raymond Hettinger | 2008-02-12 | 1 | -12/+2 |
| | |||||
* | Add -3 warnings that set.copy(), dict.copy(), and defaultdict.copy() will go ↵ | Raymond Hettinger | 2008-02-09 | 1 | -2/+12 |
| | | | | away in Py3.x | ||||
* | Update big5hkscs codec to conform to the HKSCS:2004 revision. | Hye-Shik Chang | 2008-02-08 | 2 | -1797/+1875 |
| | |||||
* | issue 2045: Infinite recursion when printing a subclass of defaultdict, | Amaury Forgeot d'Arc | 2008-02-08 | 1 | -1/+11 |
| | | | | | | if default_factory is set to a bound method. Will backport. | ||||
* | Make sure a switch statement does not have repetitive case statements. | Brett Cannon | 2008-02-07 | 1 | -0/+2 |
| | | | | Error found through LLVM post-2.1 svn. | ||||
* | Fixed refcounts and error handling. | Thomas Heller | 2008-02-06 | 1 | -8/+12 |
| | | | | Should not be merged to py3k branch. | ||||
* | Another int -> pid_t case | Christian Heimes | 2008-02-03 | 1 | -1/+2 |
| |