summaryrefslogtreecommitdiff
path: root/Objects/dictobject.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #25557: Refactor _PyDict_LoadGlobal()Victor Stinner2015-11-201-26/+29
| | | | | Don't fallback to PyDict_GetItemWithError() if the hash is unknown: compute the hash instead. Add also comments to explain the optimization a little bit.
* Issue #24483: C implementation of functools.lru_cache() now calculates key'sSerhiy Storchaka2015-10-021-0/+37
| | | | hash only once.
* merge 3.4 (#24407)Benjamin Peterson2015-07-041-7/+19
|\
| * merge 3.3 (#24407)Benjamin Peterson2015-07-041-174/+250
| |\
| * | protect against mutation of the dict during insertion (closes #24407)Benjamin Peterson2015-07-041-7/+19
| | |
* | | Issue #16991: Add a C implementation of collections.OrderedDict.Eric Snow2015-05-291-172/+165
| | |
* | | PEP 448: additional unpacking generalizations (closes #2292)Benjamin Peterson2015-05-051-3/+3
| | | | | | | | | | | | Patch by Neil Girdhar.
* | | Issue #23501: Argumen Clinic now generates code into separate files by default.Serhiy Storchaka2015-04-031-40/+4
| | |
* | | Issue #22653: Fix an assertion failure in debug mode when doing a reentrant ↵Antoine Pitrou2014-10-181-3/+3
|\ \ \ | | |/ | |/| | | | dict insertion in debug mode.
| * | Issue #22653: Fix an assertion failure in debug mode when doing a reentrant ↵Antoine Pitrou2014-10-181-3/+3
| | | | | | | | | | | | dict insertion in debug mode.
* | | Issue 21101: Internal API for dict getitem and setitem where the hash value ↵Raymond Hettinger2014-05-031-0/+56
|/ / | | | | | | is known.
* | Issue #20530: Argument Clinic's signature format has been revised again.Larry Hastings2014-02-081-4/+8
| | | | | | | | | | | | | | The new syntax is highly human readable while still preventing false positives. The syntax also extends Python syntax to denote "self" and positional-only parameters, allowing inspect.Signature objects to be totally accurate for all supported builtins in Python 3.4.
* | Issue #20326: Argument Clinic now uses a simple, unique signature toLarry Hastings2014-01-281-5/+5
| | | | | | | | | | | | | | | | | | | | annotate text signatures in docstrings, resulting in fewer false positives. "self" parameters are also explicitly marked, allowing inspect.Signature() to authoritatively detect (and skip) said parameters. Issue #20326: Argument Clinic now generates separate checksums for the input and output sections of the block, allowing external tools to verify that the input has not changed (and thus the output is not out-of-date).
* | Issue #20390: Small fixes and improvements for Argument Clinic.Larry Hastings2014-01-251-5/+4
| |
* | Issue #20189: Four additional builtin types (PyTypeObject,Larry Hastings2014-01-241-21/+50
| | | | | | | | | | | | PyMethodDescr_Type, _PyMethodWrapper_Type, and PyWrapperDescr_Type) have been modified to provide introspection information for builtins. Also: many additional Lib, test suite, and Argument Clinic fixes.
* | Fix minor bug in dict.__contains__ docstring.Meador Inge2014-01-141-3/+3
| | | | | | | | | | When dict got clinicized in 8fde1a2c94dc for Issue #16612 an erroneous trailing quote was left in the clinic docstring summary line.
* | Issue #19273: The marker comments Argument Clinic uses have been changedLarry Hastings2014-01-071-6/+6
| | | | | | | | to improve readability.
* | Issue #19674: inspect.signature() now produces a correct signatureLarry Hastings2013-11-231-5/+8
| | | | | | | | for some builtins.
* | Issue #19646: repr(dict) now uses _PyUnicodeWriter API for better performancesVictor Stinner2013-11-191-55/+54
| |
* | Argument Clinic: rename "self" to "module" for module-level functions.Larry Hastings2013-11-181-1/+1
| |
* | Issue #19512: Add a new _PyDict_DelItemId() function, similar toVictor Stinner2013-11-061-0/+9
| | | | | | | | PyDict_DelItemString() but using an identifier for the key
* | Issue #16612: Add "Argument Clinic", a compile-time preprocessorLarry Hastings2013-10-191-6/+24
| | | | | | | | for C files to generate argument parsing code. (See PEP 436.)
* | Factor-out the common code for setting a KeyError.Raymond Hettinger2013-09-021-18/+4
| |
* | Issue #18722: Remove uses of the "register" keyword in C code.Antoine Pitrou2013-08-131-39/+39
| |
* | 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-181-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-16/+33
|\ \ | |/ |/|
| * 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-071-11/+23
| | | | | | | | Patch by Stefan Behnel and I.
| * merge 3.3 (#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).
* | | Issue #17563: Fix dict resize performance regression.Raymond Hettinger2013-05-171-7/+11
| |/ |/|
* | fix possible setdefault refleak (closes #17328)Benjamin Peterson2013-03-041-2/+2
|/
* merge 3.2Benjamin Peterson2012-10-311-624/+1331
|\
| * merge 3.2 (#16345)Benjamin Peterson2012-10-311-624/+1331
| |\
| | * 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
| | |