summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Issue 2246: itertools grouper object did not participate in GC (should be ↵Raymond Hettinger2008-03-061-5/+15
| | | | backported).
* Small code cleanup.Raymond Hettinger2008-03-051-4/+2
|
* C implementation of itertools.permutations().Raymond Hettinger2008-03-051-0/+274
|
* Issue 1872: Changed the struct module typecode from 't' to '?', forThomas Heller2008-03-054-11/+20
| | | | compatibility with PEP3118.
* Fix refleak in chain().Raymond Hettinger2008-03-041-1/+1
|
* Try to fix the build for PY_LINUX.Thomas Heller2008-03-041-0/+1
|
* Merged changes from libffi3-branch.Thomas Heller2008-03-0497-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 Hettinger2008-03-041-4/+1
|
* Only DECREF if ret != NULLNeal Norwitz2008-03-031-1/+1
|
* Handle 0-tuples which can be singletons.Raymond Hettinger2008-03-021-1/+1
|
* Simplify code for itertools.product().Raymond Hettinger2008-03-021-13/+2
|
* Updated to pysqlite 2.4.1. Documentation additions will come later.Gerhard Häring2008-02-2910-202/+483
|
* Handle the repeat keyword argument for itertools.product().Raymond Hettinger2008-02-291-5/+27
|
* Add alternate constructor for itertools.chain().Raymond Hettinger2008-02-281-1/+25
|
* Have itertools.chain() consume its inputs lazily instead of building a tuple ↵Raymond Hettinger2008-02-281-51/+51
| | | | of iterators at the outset.
* The empty tuple is usually a singleton with a much higher refcnt than 1Christian Heimes2008-02-281-2/+5
|
* One too many decrefs.Raymond Hettinger2008-02-271-3/+1
|
* Add itertools.combinations().Raymond Hettinger2008-02-261-1/+225
|
* Patch #1691070 from Roger Upole: Speed up PyArg_ParseTupleAndKeywords() and ↵Christian Heimes2008-02-261-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 Heimes2008-02-261-5/+12
| | | | from py3k.
* Whitespace normalizationNeal Norwitz2008-02-261-9/+9
|
* Coerced PyBool_Type to be able to compare it.Facundo Batista2008-02-251-2/+2
|
* Make sure the itertools filter functions give the same performance for ↵Raymond Hettinger2008-02-251-2/+2
| | | | func=bool as func=None.
* Issue 2168. gdbm and dbm needs to be iterable; this fixes aFacundo Batista2008-02-252-3/+68
| | | | failure in the shelve module. Thanks Thomas Herve.
* Fix typo of hexidecimalNeal Norwitz2008-02-241-1/+1
|
* Get ctypes working on the Alpha (Tru64). The problem was that thereNeal Norwitz2008-02-241-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 Brandl2008-02-231-0/+138
|
* #1826: allow dotted attribute paths in operator.attrgetter.Georg Brandl2008-02-231-3/+48
|
* Patch #1957: syslogmodule: Release GIL when calling syslog(3)Christian Heimes2008-02-231-0/+2
|
* Issue 1089358. Adds the siginterrupt() function, that is just aFacundo Batista2008-02-231-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 decoratorsChristian Heimes2008-02-231-10/+25
| | | | with some help from Georg
* Add more commentsRaymond Hettinger2008-02-231-4/+4
|
* Added future_builtins, which contains PEP 3127 compatible versions of hex() ↵Eric Smith2008-02-231-0/+69
| | | | and oct().
* Improve the implementation of itertools.product()Raymond Hettinger2008-02-231-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 Hettinger2008-02-221-1/+212
|
* configure.ac: Remove the configure check for _Bool, it is already done in theThomas Heller2008-02-213-3162/+3023
| | | | | top-level Python configure script. configure, fficonfig.h.in: regenerated.
* Backport of PEP 3101, Advanced String Formatting, from py3k.Eric Smith2008-02-171-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, butFacundo Batista2008-02-171-1/+4
| | | | a subclass of it. Thanks John Lenton.
* Crashers of the day: Py_CLEAR must be used when there is a chance that theAmaury Forgeot d'Arc2008-02-162-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_READChristian Heimes2008-02-151-0/+4
| | | | Thanks to Thomas Herve for the fix.
* Implemented Martin's suggestion to clear the free lists during the garbage ↵Christian Heimes2008-02-141-0/+22
| | | | collection of the highest generation.
* Add pickle support to ctypes types.Thomas Heller2008-02-134-1/+91
|
* #2063: correct order of utime and stime in os.times()Georg Brandl2008-02-131-2/+2
| | | | result on Windows.
* dict.copy() rises from the ashes. Revert r60687.Raymond Hettinger2008-02-121-12/+2
|
* Add -3 warnings that set.copy(), dict.copy(), and defaultdict.copy() will go ↵Raymond Hettinger2008-02-091-2/+12
| | | | away in Py3.x
* Update big5hkscs codec to conform to the HKSCS:2004 revision.Hye-Shik Chang2008-02-082-1797/+1875
|
* issue 2045: Infinite recursion when printing a subclass of defaultdict,Amaury Forgeot d'Arc2008-02-081-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 Cannon2008-02-071-0/+2
| | | | Error found through LLVM post-2.1 svn.
* Fixed refcounts and error handling.Thomas Heller2008-02-061-8/+12
| | | | Should not be merged to py3k branch.
* Another int -> pid_t caseChristian Heimes2008-02-031-1/+2
|