Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-31095: Fix potential crash during GC (GH-3197) | INADA Naoki | 2017-09-04 | 1 | -0/+4 |
| | | | (cherry picked from commit a6296d34a478b4f697ea9db798146195075d496c) | ||||
* | remove some copyright notices supserseded by the toplevel ones | Benjamin Peterson | 2016-01-01 | 1 | -2/+0 |
| | |||||
* | Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size. | Serhiy Storchaka | 2015-12-19 | 1 | -1/+1 |
| | | | | | This allows sys.getsize() to work correctly with their subclasses with __slots__ defined. | ||||
* | Second instance of deque needing "len" instead of "Py_SIZE" in Py2.7 | Raymond Hettinger | 2015-11-13 | 1 | -1/+1 |
| | |||||
* | Deque uses "len" instead of varhead in Py2.7 | Raymond Hettinger | 2015-11-12 | 1 | -1/+1 |
| | |||||
* | Backport early-out 91259f061cfb to reduce the cost of bb1a2944bcb6 | Raymond Hettinger | 2015-10-07 | 1 | -1/+5 |
| | |||||
* | Issue #25135: Avoid possible reentrancy issues in deque_clear. | Raymond Hettinger | 2015-09-26 | 1 | -3/+57 |
| | |||||
* | Issue #19663: Improve error message for defaultdict. | Raymond Hettinger | 2015-07-20 | 1 | -1/+1 |
| | |||||
* | deque is not varsized, so using Py_SIZE is nonsensical (closes #24162) | Benjamin Peterson | 2015-05-15 | 1 | -1/+1 |
| | |||||
* | Defer deleted item decref until after the deque is restored to a consistent ↵ | Raymond Hettinger | 2015-05-02 | 1 | -7/+7 |
| | | | | state. | ||||
* | correct defaultdict signature in docstring (closes #20250) | Benjamin Peterson | 2014-01-14 | 1 | -1/+3 |
| | | | | Patch from Andrew Barnert. | ||||
* | Restore the data block size to 62. | Raymond Hettinger | 2013-07-28 | 1 | -3/+6 |
| | | | | | | | | | | | | The former block size traded away good fit within cache lines in order to gain faster division in deque_item(). However, compilers are getting smarter and can now replace the slow division operation with a fast integer multiply and right shift. Accordingly, it makes sense to go back to a size that lets blocks neatly fill entire cache-lines. GCC-4.8 and CLANG 4.0 both compute "x // 62" with something roughly equivalent to "x * 9520900167075897609 >> 69". | ||||
* | Backport c952f3d122ae: Tweak the deque struct by moving the least used fields | Raymond Hettinger | 2013-07-16 | 1 | -1/+1 |
| | | | | (maxlen and weakref) to the end. | ||||
* | Move the leftlink to the end of the block structure. | Raymond Hettinger | 2013-07-16 | 1 | -1/+1 |
| | | | | | | | | | | | | The current pattern of memory access will update both the leftlink and rightlink at the same time, so they should be positioned side-by-side for better cache locality. Keeping the leftlink at the front of the structure would make sense only if the paired updates were eliminated by backporting changesets 49a9c734304d, 3555cc0ca35b, ae9ee46bd471, and 744dd749e25b. However, that isn't likely to happen, so we're better off with the leftlink at the end of the structure. | ||||
* | reapply f1dc30a1be72 | Benjamin Peterson | 2013-06-25 | 1 | -1/+1 |
| | |||||
* | reapply 5accb0ac8bfb | Benjamin Peterson | 2013-06-25 | 1 | -11/+7 |
| | |||||
* | reapply f1dc30a1be72 | Benjamin Peterson | 2013-06-25 | 1 | -1/+1 |
| | |||||
* | reapply f1dc30a1be72 | Benjamin Peterson | 2013-06-25 | 1 | -1/+1 |
| | |||||
* | also backout f1dc30a1be72 for not being a bugfix | Benjamin Peterson | 2013-06-23 | 1 | -1/+1 |
| | |||||
* | backout 5accb0ac8bfb; needs more discussion on python-dev | Benjamin Peterson | 2013-06-22 | 1 | -7/+11 |
| | |||||
* | Arrange structure to match the common access patterns. | Raymond Hettinger | 2013-06-22 | 1 | -1/+1 |
| | |||||
* | Fix comment blocks. Adjust blocksize to a power-of-two for better divmod ↵ | Raymond Hettinger | 2013-06-14 | 1 | -11/+7 |
| | | | | computations. | ||||
* | Minor cleanups. | Raymond Hettinger | 2013-02-09 | 1 | -19/+19 |
| | |||||
* | Issue 16398: Use memcpy() in deque.rotate(). | Raymond Hettinger | 2013-02-02 | 1 | -50/+60 |
| | |||||
* | make deque_clear void, since it's infallible | Benjamin Peterson | 2013-01-13 | 1 | -6/+2 |
| | |||||
* | Issue #16398: Optimize deque.rotate() | Raymond Hettinger | 2013-01-12 | 1 | -14/+58 |
| | |||||
* | Fix docstring for deque ctor to mark iterable parameter optional | Andrew Svetlov | 2012-10-31 | 1 | -1/+1 |
| | |||||
* | Closes #15469: Correct __sizeof__ support for deque | Jesus Cea | 2012-08-03 | 1 | -1/+20 |
| | |||||
* | Issue #13015: Fix a possible reference leak in defaultdict.__repr__. | Antoine Pitrou | 2012-02-15 | 1 | -1/+3 |
| | | | | Patch by Suman Saha. | ||||
* | Issue 11713: clarify docstring for collections.deque() | Raymond Hettinger | 2011-03-30 | 1 | -1/+1 |
| | |||||
* | Issue 11004: Fix edge case for deque.count(). | Raymond Hettinger | 2011-01-25 | 1 | -4/+7 |
| | |||||
* | Untabify C files. Will watch buildbots. | Antoine Pitrou | 2010-05-09 | 1 | -1180/+1180 |
| | |||||
* | Add count() method to collections.deque(). | Raymond Hettinger | 2010-04-03 | 1 | -0/+42 |
| | |||||
* | 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 |
| |