summaryrefslogtreecommitdiffstats
path: root/Objects/dictobject.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #18520: Fix _PyDict_GetItemId(), suppress _PyUnicode_FromId() errorVictor Stinner2013-07-221-1/+3
| | | | | As PyDict_GetItem(), _PyDict_GetItemId() suppresses all errors that may occur, for historical reasons.
* Issue #18408: Fix dict_repr(), don't call PyObject_Repr() with an exception setVictor Stinner2013-07-171-0/+3
| | | | | PyObject_Repr() can removes the current exception. For example, module_repr() calls PyErr_Clear() if calling loader.module_repr(mod) failed.
* Issue #18408: dict_new() now fails on new_keys_object() errorVictor Stinner2013-07-161-10/+9
| | | | Pass the MemoryError exception to the caller, instead of using empty keys.
* Cleanup dictobject.cVictor Stinner2013-07-161-17/+19
|
* Issue #18408: Fix PyDict_GetItemString(), suppress PyUnicode_FromString() errorVictor Stinner2013-07-161-1/+3
| | | | | As PyDict_GetItem(), PyDict_GetItemString() suppresses all errors that may occur for historical reasons.
* Issue #18408: Fix PyDict_New() to handle correctly new_keys_object() failureVictor Stinner2013-07-081-1/+5
| | | | (MemoryError).
* mergeRaymond Hettinger2013-05-171-7/+11
|\
| * Issue #17563: Fix dict resize performance regression.Raymond Hettinger2013-05-171-7/+11
| |
* | Touch up grammar for dict.update() docstring.Brett Cannon2013-05-111-4/+4
| |
* | fix warning (closes #17327)Benjamin Peterson2013-03-081-1/+1
| |
* | Add PyDict_SetDefault. (closes #17327)Benjamin Peterson2013-03-081-11/+23
| | | | | | | | Patch by Stefan Behnel and I.
* | merge 3.3 (#17328)Benjamin Peterson2013-03-041-2/+2
|\ \ | |/
| * fix possible setdefault refleak (closes #17328)Benjamin Peterson2013-03-041-2/+2
| |
* | Issue #16562: Optimize dict equality testing.Antoine Pitrou2012-12-021-1/+6
|/ | | | Patch by Serhiy Storchaka (reviewed by Martin and Raymond).
* merge 3.2Benjamin Peterson2012-10-311-1/+1
|\
| * avoid a function call with redundant checks for dict sizeBenjamin Peterson2012-10-311-1/+1
| |
* | merge 3.2 (#16345)Benjamin Peterson2012-10-311-29/+30
|\ \ | |/
| * only fast-path fromkeys() when the constructor returns a empty dict (closes ↵Benjamin Peterson2012-10-311-33/+34
| | | | | | | | #16345)
* | Issue #15055: update dictnotes.txt. Patch by Mark Shannon.Antoine Pitrou2012-06-241-8/+16
| |
* | Issue #14785: Add sys._debugmallocstats() to help debug low-level memory ↵David Malcolm2012-06-221-0/+9
| | | | | | | | allocation issues
* | Issue #14417: Mutating a dict during lookup now restarts the lookup instead ↵Antoine Pitrou2012-05-131-8/+9
| | | | | | | | of raising a RuntimeError (undoes issue #14205).
* | Make the reference counting of dictkeys objects participate in refleak huntingAntoine Pitrou2012-05-121-6/+10
| | | | | | | | (issue #13903).
* | change insertdict to not steal references (#13903)Benjamin Peterson2012-04-301-13/+3
| |
* | distiguish between refusing to creating shared keys and error (#13903)Benjamin Peterson2012-04-241-4/+7
| |
* | Account for shared keys in type's __sizeof__ (#13903).Martin v. Loewis2012-04-241-11/+12
| |
* | fix dict gc tracking (#13903)Benjamin Peterson2012-04-241-0/+3
| |
* | fix instance dicts with str subclasses (#13903)Benjamin Peterson2012-04-231-1/+5
| |
* | don't make shared keys with dict subclassesBenjamin Peterson2012-04-231-1/+1
| |
* | Implement PEP 412: Key-sharing dictionaries (closes #13903)Benjamin Peterson2012-04-231-588/+1183
| | | | | | | | Patch from Mark Shannon.
* | Issue #2377: Make importlib the implementation of __import__().Brett Cannon2012-04-141-0/+10
| | | | | | | | | | | | | | importlib._bootstrap is now frozen into Python/importlib.h and stored as _frozen_importlib in sys.modules. Py_Initialize() loads the frozen code along with sys and imp and then uses _frozen_importlib._install() to set builtins.__import__() w/ _frozen_importlib.__import__().
* | Rename _PyIter_GetBuiltin to _PyObject_GetBuiltin, and do not include it in ↵Antoine Pitrou2012-04-041-1/+1
| | | | | | | | the stable ABI.
* | Issue #14288: Serialization support for builtin iterators.Kristján Valur Jónsson2012-04-031-0/+53
| |
* | Issue #14383: Add _PyDict_GetItemId() and _PyDict_SetItemId() functionsVictor Stinner2012-03-261-0/+20
| | | | | | | | | | These functions simplify the usage of static constant Unicode strings. Generalize the usage of _Py_Identifier in ceval.c and typeobject.c.
* | Close #14205: dict lookup raises a RuntimeError if the dict is modified duringVictor Stinner2012-03-061-12/+6
| | | | | | | | | | | | | | a lookup. "if you want to make a sandbox on top of CPython, you have to fix segfaults" so let's fix segfaults!
* | Issue #13521: dict.setdefault() now does only one lookup for the given key, ↵Antoine Pitrou2012-02-261-42/+70
|\ \ | |/ | | | | | | | | making it "atomic" for many purposes. Patch by Filip Gruszczyński.
| * Issue #13521: dict.setdefault() now does only one lookup for the given key, ↵Antoine Pitrou2012-02-261-42/+70
| | | | | | | | | | | | making it "atomic" for many purposes. Patch by Filip Gruszczyński.
* | use the static identifier api for looking up special methodsBenjamin Peterson2012-01-221-4/+2
| | | | | | | | | | I had to move the static identifier code from unicodeobject.h to object.h in order for this to work.
* | Merge with 3.2.Georg Brandl2011-12-181-3/+3
|\ \ | |/
| * Small clarification in docstring of dict.update(): the positional argument ↵Georg Brandl2011-12-181-3/+3
| | | | | | | | is not required.
* | Issue #13389: Full garbage collection passes now clear the freelists forAntoine Pitrou2011-11-141-3/+10
| | | | | | | | | | list and dict objects. They already cleared other freelists in the interpreter.
* | Merge 3.2Petri Lehtinen2011-10-241-4/+12
|\ \ | |/
| * Issue #13018: Fix reference leaks in error paths in dictobject.c.Petri Lehtinen2011-10-241-4/+12
| | | | | | | | Patch by Suman Saha.
* | Port SetAttrString/HasAttrString to SetAttrId/GetAttrId.Martin v. Löwis2011-10-141-2/+3
| |
* | Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis2011-10-141-3/+3
| |
* | dictviews_or() uses _Py_identifierVictor Stinner2011-10-131-1/+3
| |
* | Add API for static strings, primarily good for identifiers.Martin v. Löwis2011-10-091-3/+9
| | | | | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
* | Implement PEP 393.Martin v. Löwis2011-09-281-10/+10
| |
* | Issue #1621: Fix undefined behaviour in bytes.__hash__, str.__hash__, ↵Mark Dickinson2011-09-241-2/+2
| | | | | | | | tuple.__hash__, frozenset.__hash__ and set indexing operations.
* | Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED.Brian Curtin2011-08-111-4/+2
|/ | | | The macro was introduced in #12724.
* #11565: Merge with 3.1.Ezio Melotti2011-03-161-1/+1
|\