summaryrefslogtreecommitdiffstats
path: root/Objects/dictobject.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #26494: Fixed crash on iterating exhausting iterators.Serhiy Storchaka2016-03-301-3/+3
| | | | | Affected classes are generic sequence iterators, iterators of bytearray, list, tuple, set, frozenset, dict, OrderedDict and corresponding views.
* properly use PyObject_CallMethod in dictview binary operations (closes #26478)Benjamin Peterson2016-03-041-5/+5
|
* Issue #25698: Importing module if the stack is too deep no longer replacesSerhiy Storchaka2016-02-101-0/+30
| | | | imported module with the empty one.
* Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size.Serhiy Storchaka2015-12-191-1/+1
| | | | | This allows sys.getsize() to work correctly with their subclasses with __slots__ defined.
* Issue #23971: Fix underestimated presizing in dict.fromkeys()Raymond Hettinger2015-05-131-2/+2
|
* add missing NULL check (closes #18019)Benjamin Peterson2013-05-201-0/+4
|
* avoid a function call with redundant checks for dict sizeBenjamin Peterson2012-10-311-1/+1
|
* only fast-path fromkeys() when the constructor returns a empty dict (closes ↵Benjamin Peterson2012-10-311-33/+34
| | | | #16345)
* Issue #13521: dict.setdefault() now does only one lookup for the given key, ↵Antoine Pitrou2012-02-261-44/+69
| | | | | | making it "atomic" for many purposes. Patch by Filip Gruszczyński.
* Small clarification in docstring of dict.update(): the positional argument ↵Georg Brandl2011-12-181-3/+3
| | | | is not required.
* Issue #13018: Fix reference leaks in error paths in dictobject.c.Petri Lehtinen2011-10-241-4/+12
| | | | Patch by Suman Saha.
* #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-161-1/+1
|
* Issue 10221: Improve error message for dict.pop().Raymond Hettinger2010-10-301-2/+1
|
* Untabify C files. Will watch buildbots.Antoine Pitrou2010-05-091-2206/+2206
|
* Issue #8404: Fix set operations on dictionary views.Alexandre Vassalotti2010-05-041-3/+6
|
* #8030: more docstring fix for builtin types.Ezio Melotti2010-02-281-2/+2
|
* #8030: make builtin type docstrings more consistent: use "iterable" instead ↵Georg Brandl2010-02-281-2/+2
| | | | of "seq(uence)", use "new" to show that set() always returns a new object.
* Fixed repr of dictionary views.Alexandre Vassalotti2010-01-121-1/+2
|
* Issue #1967: Backport dictionary views.Alexandre Vassalotti2010-01-111-0/+505
|
* clarifyBenjamin Peterson2009-07-251-1/+1
|
* must use _PyThreadState_Current so it isn't checked for NULL #6530Benjamin Peterson2009-07-211-4/+6
|
* use the offical apiBenjamin Peterson2009-06-041-1/+1
|
* plug ref leakBenjamin Peterson2009-05-271-4/+7
|
* correctly handle descrs with __missing__Benjamin Peterson2009-05-271-5/+6
|
* The tracking statistics were actually too pessimisticAntoine Pitrou2009-03-231-0/+1
|
* Issue #4688: Add a heuristic so that tuples and dicts containing onlyAntoine Pitrou2009-03-231-1/+81
| | | | | | | | | untrackable objects are not tracked by the garbage collector. This can reduce the size of collections and therefore the garbage collection overhead on long-running programs, depending on their particular use of datatypes. (trivia: this makes the "binary_trees" benchmark from the Computer Language Shootout 40% faster)
* Issue #3680: Reference cycles created through a dict, set or deque iterator ↵Antoine Pitrou2009-01-011-8/+17
| | | | did not get collected.
* Punctuation fix; expand dict.update docstring to be clearerAndrew M. Kuchling2008-10-041-4/+6
|
* - Issue #3537: Fix an assertion failure when an empty but presized dictGeorg Brandl2008-08-111-0/+4
| | | | object was stored in the freelist.
* Issue 2235: __hash__ is once again inherited by default, but inheritance can ↵Nick Coghlan2008-07-151-1/+1
| | | | be blocked explicitly so that collections.Hashable remains meaningful
* Issue 3230: Do not the set specific size macro.Raymond Hettinger2008-06-281-1/+1
|
* Corrected inconsistencies in sizeof tests and addressed issue pointedRobert Schuppenies2008-06-261-1/+1
| | | | out by Jean Brouwers.
* This reverts r63675 based on the discussion in this thread:Gregory P. Smith2008-06-091-39/+39
| | | | | | | 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.
* Some style nits. Also clarify in the docstrings what __sizeof__ does.Georg Brandl2008-06-011-1/+1
|
* Issue #2898: Added sys.getsizeof() to retrieve size of objects in bytes.Robert Schuppenies2008-06-011-0/+15
|
* Renamed PyString to PyBytesChristian Heimes2008-05-261-39/+39
|
* A little reformating of Py3k warningsBenjamin Peterson2008-04-271-2/+2
|
* Use PyErr_WarnPy3k throughoutBenjamin Peterson2008-04-271-8/+4
|
* Fix tabs.Georg Brandl2008-03-251-1/+1
|
* Make Py3k warnings consistent w.r.t. punctuation; also respect theGeorg Brandl2008-03-251-3/+6
| | | | EOL 80 limit and supply more alternatives in warning messages.
* Add py3k warnings for object, type, cell and dict comparisons. This should ↵Steven Bethard2008-03-181-1/+7
| | | | resolve issue2342 and partly resolve issue2373.
* Use PY_FORMAT_SIZE_T instead of z for string formatting. Thanks Neal.Christian Heimes2008-02-241-2/+4
|
* dict.copy() rises from the ashes. Revert r60687.Raymond Hettinger2008-02-121-4/+0
|
* Add -3 warnings that set.copy(), dict.copy(), and defaultdict.copy() will go ↵Raymond Hettinger2008-02-091-0/+4
| | | | away in Py3.x
* Use prefix decrementChristian Heimes2008-02-081-2/+2
|
* Deallocate content of the dict free list on interpreter shutdownChristian Heimes2008-02-081-0/+12
|
* Added some statistics code to dict and list object code. I wanted to test ↵Christian Heimes2008-02-071-0/+25
| | | | how a larger freelist affects the reusage of freed objects. Contrary to my gut feelings 80 objects is more than fine for small apps. I haven't profiled a large app yet.
* Unified naming convention for free lists and their limits. All free listsChristian Heimes2008-02-061-7/+9
| | | | | | | | in Object/ are named ``free_list``, the counter ``numfree`` and the upper limit is a macro ``PyName_MAXFREELIST`` inside an #ifndef block. The chances should make it easier to adjust Python for platforms with less memory, e.g. mobile phones.
* Changes 54857 and 54840 broke code and were reverted in Py2.5 just beforeRaymond Hettinger2008-01-251-1/+1
| | | | it was released, but that reversion never made it to the Py2.6 head.
* #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and ↵Christian Heimes2007-12-191-4/+4
| | | | Py_REFCNT. Macros for b/w compatibility are available.