Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #28126: Replace Py_MEMCPY with memcpy(). Visual Studio can properly ↵ | Christian Heimes | 2016-09-13 | 5 | -51/+51 |
| | | | | optimize memcpy(). | ||||
* | Fix _PyDict_Pop() on pending key | Victor Stinner | 2016-09-13 | 1 | -1/+1 |
| | | | | | | | Issue #28120: Fix dict.pop() for splitted dictionary when trying to remove a "pending key" (Not yet inserted in split-table). Patch by Xiang Zhang. | ||||
* | Issue #28040: Cleanup find_empty_slot() | Victor Stinner | 2016-09-13 | 1 | -6/+2 |
| | | | | find_empty_slot() only supports combined dict | ||||
* | Fix warning in _PyCFunction_FastCallKeywords() | Victor Stinner | 2016-09-12 | 1 | -2/+1 |
| | | | | Issue #28105. | ||||
* | Issue #28077: find_empty_slot() only supports combined dict | Victor Stinner | 2016-09-12 | 1 | -3/+7 |
| | |||||
* | Document kwnames in _PyObject_FastCallKeywords() and _PyStack_AsDict() | Victor Stinner | 2016-09-12 | 2 | -0/+8 |
| | | | | Issue #27213. | ||||
* | Revert change f860b7a775c5 | Victor Stinner | 2016-09-12 | 2 | -20/+8 |
| | | | | | Revert change "Issue #27213: Reintroduce checks in _PyStack_AsDict()", pushed by mistake. | ||||
* | ssue #27213: Reintroduce checks in _PyStack_AsDict() | Victor Stinner | 2016-09-12 | 2 | -8/+20 |
| | |||||
* | Issue #28071: Add early-out for differencing from an empty set. | Raymond Hettinger | 2016-09-12 | 1 | -0/+8 |
| | |||||
* | Issue #28045: Merge from 3.5 | Berker Peksag | 2016-09-12 | 1 | -1/+1 |
|\ | |||||
| * | Issue #28045: Fix comment in range_contains_long() | Berker Peksag | 2016-09-12 | 1 | -1/+1 |
| | | | | | | | | Patch by wim glenn. | ||||
* | | Issue #27213: Fixed different issues with reworked CALL_FUNCTION* opcodes. | Serhiy Storchaka | 2016-09-11 | 2 | -20/+8 |
| | | | | | | | | | | | | | | | | | | | | | | * BUILD_TUPLE_UNPACK and BUILD_MAP_UNPACK_WITH_CALL no longer generated with single tuple or dict. * Restored more informative error messages for incorrect var-positional and var-keyword arguments. * Removed code duplications in _PyEval_EvalCodeWithName(). * Removed redundant runtime checks and parameters in _PyStack_AsDict(). * Added a workaround and enabled previously disabled test in test_traceback. * Removed dead code from the dis module. | ||||
* | | Issue #27129: Replaced wordcode related magic constants with macros. | Serhiy Storchaka | 2016-09-11 | 2 | -4/+4 |
| | | |||||
* | | Issue #23722: Initialize __class__ from type.__new__() | Nick Coghlan | 2016-09-11 | 1 | -2/+11 |
| | | | | | | | | | | | | | | | | | | The __class__ cell used by zero-argument super() is now initialized from type.__new__ rather than __build_class__, so class methods relying on that will now work correctly when called from metaclass methods during class creation. Patch by Martin Teichmann. | ||||
* | | Issue #25221: merge from 3.5. | Mark Dickinson | 2016-09-10 | 1 | -1/+2 |
|\ \ | |/ | |||||
| * | Issue #25221: Fix corrupted result from PyLong_FromLong(0) when Python is ↵ | Mark Dickinson | 2016-09-10 | 1 | -1/+2 |
| | | | | | | | | compiled with NSMALLPOSINTS = 0. | ||||
| * | Issue #27895: Spelling fixes (Contributed by Ville Skyttä). | Martin Panter | 2016-09-07 | 5 | -5/+5 |
| | | |||||
* | | Fixed compiler warnings in compact dict implementation on 32-bit platforms. | Serhiy Storchaka | 2016-09-10 | 1 | -11/+11 |
| | | |||||
* | | dictobject.c: explain why stringlib is used | Victor Stinner | 2016-09-10 | 1 | -1/+1 |
| | | |||||
* | | Issue #27810: Rerun Argument Clinic on all modules | Victor Stinner | 2016-09-10 | 2 | -32/+32 |
| | | |||||
* | | Add METH_FASTCALL calling convention | Victor Stinner | 2016-09-10 | 2 | -0/+80 |
| | | | | | | | | | | | | | | | | | | | | | | Issue #27810: Add a new calling convention for C functions: PyObject* func(PyObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames); Where args is a C array of positional arguments followed by values of keyword arguments. nargs is the number of positional arguments, kwnames are keys of keyword arguments. kwnames can be NULL. | ||||
* | | Fix SystemError in compact dict | Victor Stinner | 2016-09-10 | 1 | -19/+33 |
| | | | | | | | | | | | | | | | | | | Issue #28040: Fix _PyDict_DelItem_KnownHash() and _PyDict_Pop(): convert splitted table to combined table to be able to delete the item. Write an unit test for the issue. Patch by INADA Naoki. | ||||
* | | Issue #26331: Implement the parsing part of PEP 515. | Brett Cannon | 2016-09-09 | 3 | -86/+205 |
| | | | | | | | | Thanks to Georg Brandl for the patch. | ||||
* | | Issue #25856: The __module__ attribute of extension classes and functions | Serhiy Storchaka | 2016-09-09 | 1 | -12/+15 |
| | | | | | | | | now is interned. This leads to more compact pickle data with protocol 4. | ||||
* | | Issue #27810: Add _PyCFunction_FastCallKeywords() | Victor Stinner | 2016-09-09 | 2 | -2/+31 |
| | | | | | | | | | | Use _PyCFunction_FastCallKeywords() in ceval.c: it allows to remove a lot of code from ceval.c which was only used to call C functions. | ||||
* | | remove all usage of Py_LOCAL | Benjamin Peterson | 2016-09-09 | 4 | -15/+15 |
| | | |||||
* | | Add _PyObject_FastCallKeywords() | Victor Stinner | 2016-09-09 | 1 | -0/+68 |
| | | | | | | | | | | | | | | | | | | | | Issue #27830: Add _PyObject_FastCallKeywords(): avoid the creation of a temporary dictionary for keyword arguments. Other changes: * Cleanup call_function() and fast_function() (ex: rename nk to nkwargs) * Remove now useless do_call(), replaced with _PyObject_FastCallKeywords() | ||||
* | | remove unconvincing use of Py_LOCAL | Benjamin Peterson | 2016-09-09 | 1 | -6/+6 |
| | | |||||
* | | Issue #27576: Fix call order in OrderedDict.__init__(). | Eric Snow | 2016-09-09 | 1 | -2/+15 |
| | | |||||
* | | Issue #28003: Implement PEP 525 -- Asynchronous Generators. | Yury Selivanov | 2016-09-09 | 1 | -46/+986 |
| | | |||||
* | | Issue #28033: Fix typo in dictobject.c | Berker Peksag | 2016-09-09 | 1 | -1/+1 |
| | | | | | | | | Patch by Wesley Emeneker. | ||||
* | | Issue #24254: Drop cls.__definition_order__. | Eric Snow | 2016-09-08 | 2 | -80/+1 |
| | | |||||
* | | Additional safe-guard against dereferencing NULL in reduce_newobj | Christian Heimes | 2016-09-08 | 1 | -1/+7 |
| | | | | | | | | | | | | | | _PyObject_GetNewArguments() can leave args == NULL but the __newobj_ex__ branch expects args to be not-NULL. CID 1353201 | ||||
* | | Add NULL check for gen->gi_code in gen_send_ex() | Christian Heimes | 2016-09-08 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | _PyGen_Finalize() checks that gen->gi_code is not NULL before it accesses the flags of the code object. This means that the flag could be NULL. It passes down the generatore to gen_close() and gen_send_ex(). gen_send_ex() did not check for gen->gi_code != NULL. CID 1297900 | ||||
* | | do not worry about 64-bit dict sizes on 32-bit platforms | Benjamin Peterson | 2016-09-08 | 2 | -4/+10 |
| | | |||||
* | | Add a new private version to the builtin dict type | Victor Stinner | 2016-09-08 | 1 | -0/+19 |
| | | | | | | | | | | | | | | Issue #26058: Add a new private version to the builtin dict type, incremented at each dictionary creation and at each dictionary change. Implementation of the PEP 509. | ||||
* | | #27364: Deprecate invalid escape strings in str/byutes. | R David Murray | 2016-09-08 | 2 | -1/+5 |
| | | | | | | | | Patch by Emanuel Barry, reviewed by Serhiy Storchaka and Martin Panter. | ||||
* | | access dk_indices through a union | Benjamin Peterson | 2016-09-08 | 2 | -17/+18 |
| | | |||||
* | | Add documentation to the dict implementation | Victor Stinner | 2016-09-08 | 2 | -3/+42 |
| | | | | | | | | Issue #27350. | ||||
* | | Reindeint DK_xxx macros | Victor Stinner | 2016-09-08 | 1 | -6/+11 |
| | | | | | | | | Issue #27350. | ||||
* | | dk_get_index/dk_set_index uses a type indices variable | Victor Stinner | 2016-09-08 | 1 | -8/+16 |
| | | | | | | | | Issue #27350. | ||||
* | | use static inline instead of Py_LOCAL_INLINE | Benjamin Peterson | 2016-09-08 | 1 | -16/+16 |
| | | |||||
* | | Split lookdict_unicode_nodummy() assertion to debug | Victor Stinner | 2016-09-08 | 1 | -1/+2 |
| | | | | | | | | Issue #27350. | ||||
* | | fix spelling | Benjamin Peterson | 2016-09-08 | 1 | -1/+1 |
| | | |||||
* | | Add assertions to dk_set_index() | Victor Stinner | 2016-09-08 | 1 | -4/+14 |
| | | | | | | | | Issue #27350. | ||||
* | | Issue #27781: Change file system encoding on Windows to UTF-8 (PEP 529) | Steve Dower | 2016-09-08 | 1 | -19/+27 |
| | | |||||
* | | link to canonical blogspot | Benjamin Peterson | 2016-09-08 | 1 | -1/+1 |
| | | |||||
* | | use native inline instead of Py_LOCAL_INLINE | Benjamin Peterson | 2016-09-08 | 1 | -3/+3 |
| | | |||||
* | | rearrange to make gcc happy | Benjamin Peterson | 2016-09-08 | 1 | -1/+3 |
| | | |||||
* | | Add Py_MEMBER_SIZE macro | Victor Stinner | 2016-09-08 | 1 | -8/+12 |
| | | | | | | | | | | Issue #27350: use Py_MEMBER_SIZE() macro to get the size of PyDictKeyEntry.dk_indices, rather than hardcoding 8. |