Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add a reverse() method to collections.deque(). | Raymond Hettinger | 2009-12-10 | 1 | -0/+44 |
| | |||||
* | Fix variants of deque.extend: d.extend(d) d+=d d.extendleft(d) | Raymond Hettinger | 2009-12-10 | 1 | -0/+40 |
| | |||||
* | Issue 6637: defaultdict.copy() failed with an empty factory. | Raymond Hettinger | 2009-08-04 | 1 | -1/+4 |
| | |||||
* | For collections.deque() objects, expose the maxlen parameter as a read-only ↵ | Raymond Hettinger | 2009-03-10 | 1 | -1/+15 |
| | | | | attribute. | ||||
* | Small optimization for corner case where maxlen==0. | Raymond Hettinger | 2009-03-10 | 1 | -0/+23 |
| | |||||
* | #4801 _collections module fails to build on cygwin. | Amaury Forgeot d'Arc | 2009-01-02 | 1 | -2/+2 |
| | | | | | _PyObject_GC_TRACK is the macro version of PyObject_GC_Track, and according to documentation it should not be used for extension modules. | ||||
* | Issue #3680: Reference cycles created through a dict, set or deque iterator ↵ | Antoine Pitrou | 2009-01-01 | 1 | -7/+16 |
| | | | | did not get collected. | ||||
* | #3743: PY_FORMAT_SIZE_T is designed for the OS "printf" functions, not for | Amaury Forgeot d'Arc | 2008-09-10 | 1 | -1/+1 |
| | | | | | | | | | PyString_FromFormat which has an independent implementation, and uses "%zd". This makes a difference on win64, where printf needs "%Id" to display 64bit values. For example, queue.__repr__ was incorrect. Reviewed by Martin von Loewis. | ||||
* | d is the correct format string | Christian Heimes | 2008-08-22 | 1 | -1/+1 |
| | |||||
* | Fixed two format strings in the _collections module. For example | Christian Heimes | 2008-08-22 | 1 | -2/+2 |
| | | | | | Modules/_collectionsmodule.c:674: warning: format '%i' expects type 'int', but argument 2 has type 'Py_ssize_t' Reviewed by Benjamin Peterson | ||||
* | Parse to the correct datatype. | Raymond Hettinger | 2008-07-24 | 1 | -1/+1 |
| | |||||
* | Finish-up the partial conversion from int to Py_ssize_t for deque indices ↵ | Raymond Hettinger | 2008-07-24 | 1 | -23/+24 |
| | | | | and length. | ||||
* | Issue 2235: __hash__ is once again inherited by default, but inheritance can ↵ | Nick Coghlan | 2008-07-15 | 1 | -8/+1 |
| | | | | be blocked explicitly so that collections.Hashable remains meaningful | ||||
* | Make more symbols static. | Martin v. Löwis | 2008-06-13 | 1 | -5/+5 |
| | |||||
* | This reverts r63675 based on the discussion in this thread: | Gregory P. Smith | 2008-06-09 | 1 | -9/+9 |
| | | | | | | | http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread. | ||||
* | Renamed PyString to PyBytes | Christian Heimes | 2008-05-26 | 1 | -9/+9 |
| | |||||
* | 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 | ||||
* | 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. | ||||
* | #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and ↵ | Christian Heimes | 2007-12-19 | 1 | -10/+10 |
| | | | | Py_REFCNT. Macros for b/w compatibility are available. | ||||
* | Fix bug 1604. deque.__init__() did not clear existing contents like ↵ | Raymond Hettinger | 2007-12-13 | 1 | -0/+1 |
| | | | | list.__init__. Not a backport candidate. | ||||
* | Use a freelist to speed-up block allocation and deallocation in ↵ | Raymond Hettinger | 2007-11-10 | 1 | -7/+27 |
| | | | | collections.deque(). | ||||
* | Accept Jim Jewett's api suggestion to use None instead of -1 to indicate ↵ | Raymond Hettinger | 2007-10-10 | 1 | -10/+26 |
| | | | | unbounded deques. | ||||
* | Restore BEGIN/END THREADS macros which were squashed in the previous checkin | Raymond Hettinger | 2007-10-05 | 1 | -5/+21 |
| | |||||
* | dict could be NULL, so we need to XDECREF. | Neal Norwitz | 2007-10-05 | 1 | -2/+2 |
| | | | | Fix a compiler warning about passing a PyTypeObject* instead of PyObject*. | ||||
* | Add __asdict__() to NamedTuple and refine the docs. | Raymond Hettinger | 2007-10-05 | 1 | -85/+101 |
| | | | | | | Add maxlen support to deque() and fixup docs. Partially fix __reduce__(). The None as a third arg was no longer supported. Still needs work on __reduce__() to handle recursive inputs. | ||||
* | Add a bunch of GIL release/acquire points in tp_print implementations and for | Brett Cannon | 2007-09-17 | 1 | -1/+18 |
| | | | | | | PyObject_Print(). Closes issue #1164. | ||||
* | PEP 3123: Provide forward compatibility with Python 3.0, while keeping | Martin v. Löwis | 2007-07-21 | 1 | -14/+10 |
| | | | | | backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT. | ||||
* | Fix another reincarnation of bug #1576657 in defaultdict. | Georg Brandl | 2007-03-06 | 1 | -2/+6 |
| | |||||
* | Prepare collections module for pure python code entries. | Raymond Hettinger | 2007-02-28 | 1 | -0/+1366 |