summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Issue #25221: merge from 3.5.Mark Dickinson2016-09-101-1/+2
|\
| * Issue #25221: Fix corrupted result from PyLong_FromLong(0) when Python is ↵Mark Dickinson2016-09-101-1/+2
| | | | | | | | compiled with NSMALLPOSINTS = 0.
| * Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Martin Panter2016-09-075-5/+5
| |
* | Fixed compiler warnings in compact dict implementation on 32-bit platforms.Serhiy Storchaka2016-09-101-11/+11
| |
* | dictobject.c: explain why stringlib is usedVictor Stinner2016-09-101-1/+1
| |
* | Issue #27810: Rerun Argument Clinic on all modulesVictor Stinner2016-09-102-32/+32
| |
* | Add METH_FASTCALL calling conventionVictor Stinner2016-09-102-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 dictVictor Stinner2016-09-101-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 Cannon2016-09-093-86/+205
| | | | | | | | Thanks to Georg Brandl for the patch.
* | Issue #25856: The __module__ attribute of extension classes and functionsSerhiy Storchaka2016-09-091-12/+15
| | | | | | | | now is interned. This leads to more compact pickle data with protocol 4.
* | Issue #27810: Add _PyCFunction_FastCallKeywords()Victor Stinner2016-09-092-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_LOCALBenjamin Peterson2016-09-094-15/+15
| |
* | Add _PyObject_FastCallKeywords()Victor Stinner2016-09-091-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_LOCALBenjamin Peterson2016-09-091-6/+6
| |
* | Issue #27576: Fix call order in OrderedDict.__init__().Eric Snow2016-09-091-2/+15
| |
* | Issue #28003: Implement PEP 525 -- Asynchronous Generators.Yury Selivanov2016-09-091-46/+986
| |
* | Issue #28033: Fix typo in dictobject.cBerker Peksag2016-09-091-1/+1
| | | | | | | | Patch by Wesley Emeneker.
* | Issue #24254: Drop cls.__definition_order__.Eric Snow2016-09-082-80/+1
| |
* | Additional safe-guard against dereferencing NULL in reduce_newobjChristian Heimes2016-09-081-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 Heimes2016-09-081-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 platformsBenjamin Peterson2016-09-082-4/+10
| |
* | Add a new private version to the builtin dict typeVictor Stinner2016-09-081-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 Murray2016-09-082-1/+5
| | | | | | | | Patch by Emanuel Barry, reviewed by Serhiy Storchaka and Martin Panter.
* | access dk_indices through a unionBenjamin Peterson2016-09-082-17/+18
| |
* | Add documentation to the dict implementationVictor Stinner2016-09-082-3/+42
| | | | | | | | Issue #27350.
* | Reindeint DK_xxx macrosVictor Stinner2016-09-081-6/+11
| | | | | | | | Issue #27350.
* | dk_get_index/dk_set_index uses a type indices variableVictor Stinner2016-09-081-8/+16
| | | | | | | | Issue #27350.
* | use static inline instead of Py_LOCAL_INLINEBenjamin Peterson2016-09-081-16/+16
| |
* | Split lookdict_unicode_nodummy() assertion to debugVictor Stinner2016-09-081-1/+2
| | | | | | | | Issue #27350.
* | fix spellingBenjamin Peterson2016-09-081-1/+1
| |
* | Add assertions to dk_set_index()Victor Stinner2016-09-081-4/+14
| | | | | | | | Issue #27350.
* | Issue #27781: Change file system encoding on Windows to UTF-8 (PEP 529)Steve Dower2016-09-081-19/+27
| |
* | link to canonical blogspotBenjamin Peterson2016-09-081-1/+1
| |
* | use native inline instead of Py_LOCAL_INLINEBenjamin Peterson2016-09-081-3/+3
| |
* | rearrange to make gcc happyBenjamin Peterson2016-09-081-1/+3
| |
* | Add Py_MEMBER_SIZE macroVictor Stinner2016-09-081-8/+12
| | | | | | | | | | Issue #27350: use Py_MEMBER_SIZE() macro to get the size of PyDictKeyEntry.dk_indices, rather than hardcoding 8.
* | Implement compact dictVictor Stinner2016-09-084-548/+736
| | | | | | | | | | | | | | | | | | | | | | | | Issue #27350: `dict` implementation is changed like PyPy. It is more compact and preserves insertion order. _PyDict_Dummy() function has been removed. Disable test_gdb: python-gdb.py is not updated yet to the new structure of compact dictionaries (issue #28023). Patch written by INADA Naoki.
* | more PY_LONG_LONG to long longBenjamin Peterson2016-09-081-2/+2
| |
* | Issue #15767: Add ModuleNotFoundError.Eric Snow2016-09-071-0/+9
| |
* | replace some Py_LOCAL_INLINE with the inline keywordBenjamin Peterson2016-09-071-9/+10
| |
* | Make PyCodeObject.co_extra even more private to force users through the ↵Brett Cannon2016-09-071-23/+31
| | | | | | | | proper API.
* | use c++ style commentsBenjamin Peterson2016-09-071-4/+4
| |
* | Change error return value to be more consistent with the rest of PythonBrett Cannon2016-09-071-5/+5
| |
* | use a the bool type for a boolean variableBenjamin Peterson2016-09-071-2/+4
| |
* | Add the co_extra field and accompanying APIs to code objects.Brett Cannon2016-09-071-0/+91
| | | | | | | | This completes PEP 523.
* | require C99 boolBenjamin Peterson2016-09-071-20/+0
| |
* | replace PY_SIZE_MAX with SIZE_MAXBenjamin Peterson2016-09-073-4/+4
| |
* | merge 3.5 (#27968)Benjamin Peterson2016-09-071-12/+15
|\ \ | |/
| * supress coroutine warning when an exception is pending (#27968)Benjamin Peterson2016-09-071-12/+15
| |
* | merge 3.5Benjamin Peterson2016-09-071-3/+3
|\ \ | |/