Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #22653: Fix an assertion failure in debug mode when doing a reentrant ↵ | Antoine Pitrou | 2014-10-17 | 1 | -3/+3 |
| | | | | dict insertion in debug mode. | ||||
* | Issue #20530: Argument Clinic's signature format has been revised again. | Larry Hastings | 2014-02-09 | 1 | -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 to | Larry Hastings | 2014-01-28 | 1 | -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 Hastings | 2014-01-26 | 1 | -5/+4 |
| | |||||
* | Issue #20189: Four additional builtin types (PyTypeObject, | Larry Hastings | 2014-01-24 | 1 | -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 Inge | 2014-01-14 | 1 | -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 changed | Larry Hastings | 2014-01-07 | 1 | -6/+6 |
| | | | | to improve readability. | ||||
* | Issue #19674: inspect.signature() now produces a correct signature | Larry Hastings | 2013-11-23 | 1 | -5/+8 |
| | | | | for some builtins. | ||||
* | Issue #19646: repr(dict) now uses _PyUnicodeWriter API for better performances | Victor Stinner | 2013-11-19 | 1 | -55/+54 |
| | |||||
* | Argument Clinic: rename "self" to "module" for module-level functions. | Larry Hastings | 2013-11-18 | 1 | -1/+1 |
| | |||||
* | Issue #19512: Add a new _PyDict_DelItemId() function, similar to | Victor Stinner | 2013-11-06 | 1 | -0/+9 |
| | | | | PyDict_DelItemString() but using an identifier for the key | ||||
* | Issue #16612: Add "Argument Clinic", a compile-time preprocessor | Larry Hastings | 2013-10-19 | 1 | -6/+24 |
| | | | | for C files to generate argument parsing code. (See PEP 436.) | ||||
* | Factor-out the common code for setting a KeyError. | Raymond Hettinger | 2013-09-02 | 1 | -18/+4 |
| | |||||
* | Issue #18722: Remove uses of the "register" keyword in C code. | Antoine Pitrou | 2013-08-13 | 1 | -39/+39 |
| | |||||
* | Issue #18520: Fix _PyDict_GetItemId(), suppress _PyUnicode_FromId() error | Victor Stinner | 2013-07-22 | 1 | -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 set | Victor Stinner | 2013-07-17 | 1 | -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() error | Victor Stinner | 2013-07-16 | 1 | -10/+9 |
| | | | | Pass the MemoryError exception to the caller, instead of using empty keys. | ||||
* | Cleanup dictobject.c | Victor Stinner | 2013-07-16 | 1 | -17/+19 |
| | |||||
* | Issue #18408: Fix PyDict_GetItemString(), suppress PyUnicode_FromString() error | Victor Stinner | 2013-07-16 | 1 | -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() failure | Victor Stinner | 2013-07-08 | 1 | -1/+5 |
| | | | | (MemoryError). | ||||
* | merge | Raymond Hettinger | 2013-05-17 | 1 | -7/+11 |
|\ | |||||
| * | Issue #17563: Fix dict resize performance regression. | Raymond Hettinger | 2013-05-17 | 1 | -7/+11 |
| | | |||||
* | | Touch up grammar for dict.update() docstring. | Brett Cannon | 2013-05-11 | 1 | -4/+4 |
| | | |||||
* | | fix warning (closes #17327) | Benjamin Peterson | 2013-03-08 | 1 | -1/+1 |
| | | |||||
* | | Add PyDict_SetDefault. (closes #17327) | Benjamin Peterson | 2013-03-08 | 1 | -11/+23 |
| | | | | | | | | Patch by Stefan Behnel and I. | ||||
* | | merge 3.3 (#17328) | Benjamin Peterson | 2013-03-04 | 1 | -2/+2 |
|\ \ | |/ | |||||
| * | fix possible setdefault refleak (closes #17328) | Benjamin Peterson | 2013-03-04 | 1 | -2/+2 |
| | | |||||
* | | Issue #16562: Optimize dict equality testing. | Antoine Pitrou | 2012-12-02 | 1 | -1/+6 |
|/ | | | | Patch by Serhiy Storchaka (reviewed by Martin and Raymond). | ||||
* | merge 3.2 | Benjamin Peterson | 2012-10-31 | 1 | -1/+1 |
|\ | |||||
| * | avoid a function call with redundant checks for dict size | Benjamin Peterson | 2012-10-31 | 1 | -1/+1 |
| | | |||||
* | | merge 3.2 (#16345) | Benjamin Peterson | 2012-10-31 | 1 | -29/+30 |
|\ \ | |/ | |||||
| * | only fast-path fromkeys() when the constructor returns a empty dict (closes ↵ | Benjamin Peterson | 2012-10-31 | 1 | -33/+34 |
| | | | | | | | | #16345) | ||||
* | | Issue #15055: update dictnotes.txt. Patch by Mark Shannon. | Antoine Pitrou | 2012-06-24 | 1 | -8/+16 |
| | | |||||
* | | Issue #14785: Add sys._debugmallocstats() to help debug low-level memory ↵ | David Malcolm | 2012-06-22 | 1 | -0/+9 |
| | | | | | | | | allocation issues | ||||
* | | Issue #14417: Mutating a dict during lookup now restarts the lookup instead ↵ | Antoine Pitrou | 2012-05-13 | 1 | -8/+9 |
| | | | | | | | | of raising a RuntimeError (undoes issue #14205). | ||||
* | | Make the reference counting of dictkeys objects participate in refleak hunting | Antoine Pitrou | 2012-05-12 | 1 | -6/+10 |
| | | | | | | | | (issue #13903). | ||||
* | | change insertdict to not steal references (#13903) | Benjamin Peterson | 2012-04-30 | 1 | -13/+3 |
| | | |||||
* | | distiguish between refusing to creating shared keys and error (#13903) | Benjamin Peterson | 2012-04-24 | 1 | -4/+7 |
| | | |||||
* | | Account for shared keys in type's __sizeof__ (#13903). | Martin v. Loewis | 2012-04-24 | 1 | -11/+12 |
| | | |||||
* | | fix dict gc tracking (#13903) | Benjamin Peterson | 2012-04-24 | 1 | -0/+3 |
| | | |||||
* | | fix instance dicts with str subclasses (#13903) | Benjamin Peterson | 2012-04-23 | 1 | -1/+5 |
| | | |||||
* | | don't make shared keys with dict subclasses | Benjamin Peterson | 2012-04-23 | 1 | -1/+1 |
| | | |||||
* | | Implement PEP 412: Key-sharing dictionaries (closes #13903) | Benjamin Peterson | 2012-04-23 | 1 | -588/+1183 |
| | | | | | | | | Patch from Mark Shannon. | ||||
* | | Issue #2377: Make importlib the implementation of __import__(). | Brett Cannon | 2012-04-14 | 1 | -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 Pitrou | 2012-04-04 | 1 | -1/+1 |
| | | | | | | | | the stable ABI. | ||||
* | | Issue #14288: Serialization support for builtin iterators. | Kristján Valur Jónsson | 2012-04-03 | 1 | -0/+53 |
| | | |||||
* | | Issue #14383: Add _PyDict_GetItemId() and _PyDict_SetItemId() functions | Victor Stinner | 2012-03-26 | 1 | -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 during | Victor Stinner | 2012-03-06 | 1 | -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 Pitrou | 2012-02-26 | 1 | -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 Pitrou | 2012-02-26 | 1 | -42/+70 |
| | | | | | | | | | | | | making it "atomic" for many purposes. Patch by Filip Gruszczyński. |