summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Issue #28214: Now __set_name__ is looked up on the class instead of theSerhiy Storchaka2016-09-211-5/+7
|\ | | | | | | instance.
| * Issue #28214: Now __set_name__ is looked up on the class instead of theSerhiy Storchaka2016-09-211-5/+7
| | | | | | | | instance.
* | Merge 3.6Victor Stinner2016-09-211-1/+1
|\ \ | |/
| * Merge 3.5Victor Stinner2016-09-211-1/+1
| |\
| | * Fix PyUnicode_FromFormatV() error handlingVictor Stinner2016-09-211-1/+1
| | | | | | | | | | | | | | | Issue #28233: Fix a memory leak if the format string contains a non-ASCII character, destroy the unicode writer.
| | * Issue #28189: dictitems_contains no longer swallows compare errors.Raymond Hettinger2016-09-191-1/+1
| | | | | | | | | | | | (Patch by Xiang Zhang)
* | | va_end() all va_copy()ed va_lists.Christian Heimes2016-09-212-0/+5
|\ \ \ | |/ /
| * | va_end() all va_copy()ed va_lists.Christian Heimes2016-09-212-0/+5
| | |
* | | merge 3.6Benjamin Peterson2016-09-212-4/+3
|\ \ \ | |/ /
| * | replace usage of Py_VA_COPY with the (C99) standard va_copyBenjamin Peterson2016-09-212-4/+3
| | |
* | | mergeRaymond Hettinger2016-09-191-1/+1
|\ \ \ | |/ /
| * | mergeRaymond Hettinger2016-09-191-1/+1
| | |
* | | merge 3.6Benjamin Peterson2016-09-191-9/+9
|\ \ \ | |/ /
| * | correct silly spelling problemBenjamin Peterson2016-09-191-9/+9
| | |
* | | merge 3.6Benjamin Peterson2016-09-191-42/+31
|\ \ \ | |/ /
| * | replace obmalloc's homegrown uptr and uchar types with standard onesBenjamin Peterson2016-09-191-42/+31
| | |
* | | merge 3.6Benjamin Peterson2016-09-191-76/+22
|\ \ \ | |/ /
| * | improvements to code that checks whether Python (obmalloc) allocated an addressBenjamin Peterson2016-09-191-76/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Rename Py_ADDRESS_IN_RANGE to address_in_range and make it a static function instead of macro. Any compiler worth its salt will inline this function. - Remove the duplicated function version of Py_ADDRESS_IN_RANGE used when memory analysis was active. Instead, we can simply mark address_in_range as allergic to dynamic memory checking. We can now remove the __attribute__((no_address_safety_analysis)) from _PyObject_Free and _PyObject_Realloc. All the badness is contained in address_in_range now. - Fix the code that tried to only read pool->arenaindex once. Putting something in a variable is no guarantee that it won't be read multiple times. We must use volatile for that.
* | | Issue #27111: Minor simplication to long_add and long_sub fast path code. ↵Mark Dickinson2016-09-171-6/+2
| | | | | | | | | | | | Thanks Oren Milman.
* | | Issue #27441: Remove some redundant assignments to ob_size in longobject.c. ↵Mark Dickinson2016-09-171-2/+0
| | | | | | | | | | | | Thanks Oren Milman.
* | | Issue #27222: various cleanups in long_rshift. Thanks Oren Milman.Mark Dickinson2016-09-171-11/+7
|/ /
* | Issue #28139: Merge indentation fixes from 3.5 into 3.6Martin Panter2016-09-171-8/+12
|\ \ | |/
| * Issue #28139: Fix messed up indentationMartin Panter2016-09-171-8/+12
| | | | | | | | | | Also update the classmethod and staticmethod doc strings and comments to match the RST documentation.
* | Issue #25270: Merge from 3.5Berker Peksag2016-09-161-5/+14
|\ \ | |/
| * Issue #25270: Prevent codecs.escape_encode() from raising SystemError when ↵Berker Peksag2016-09-161-5/+14
| | | | | | | | an empty bytestring is passed
* | Unicode 9.0.0Benjamin Peterson2016-09-151-716/+857
| | | | | | | | | | Not completely mechanical since support for East Asian Width changes—emoji codepoints became Wide—had to be added to unicodedata.
* | Add _PyDict_CheckConsistency()Victor Stinner2016-09-142-6/+90
| | | | | | | | | | | | | | | | Issue #28127: Add a function to check that a dictionary remains consistent after any change. By default, tables are not checked, only basic attributes. Define DEBUG_PYDICT (ex: gcc -D DEBUG_PYDICT) to also check dictionary "content".
* | Issue #28126: Replace Py_MEMCPY with memcpy(). Visual Studio can properly ↵Christian Heimes2016-09-135-51/+51
| | | | | | | | optimize memcpy().
* | Fix _PyDict_Pop() on pending keyVictor Stinner2016-09-131-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 Stinner2016-09-131-6/+2
| | | | | | | | find_empty_slot() only supports combined dict
* | Fix warning in _PyCFunction_FastCallKeywords()Victor Stinner2016-09-121-2/+1
| | | | | | | | Issue #28105.
* | Issue #28077: find_empty_slot() only supports combined dictVictor Stinner2016-09-121-3/+7
| |
* | Document kwnames in _PyObject_FastCallKeywords() and _PyStack_AsDict()Victor Stinner2016-09-122-0/+8
| | | | | | | | Issue #27213.
* | Revert change f860b7a775c5Victor Stinner2016-09-122-20/+8
| | | | | | | | | | Revert change "Issue #27213: Reintroduce checks in _PyStack_AsDict()", pushed by mistake.
* | ssue #27213: Reintroduce checks in _PyStack_AsDict()Victor Stinner2016-09-122-8/+20
| |
* | Issue #28071: Add early-out for differencing from an empty set.Raymond Hettinger2016-09-121-0/+8
| |
* | Issue #28045: Merge from 3.5Berker Peksag2016-09-121-1/+1
|\ \ | |/
| * Issue #28045: Fix comment in range_contains_long()Berker Peksag2016-09-121-1/+1
| | | | | | | | Patch by wim glenn.
* | Issue #27213: Fixed different issues with reworked CALL_FUNCTION* opcodes.Serhiy Storchaka2016-09-112-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 Storchaka2016-09-112-4/+4
| |
* | Issue #23722: Initialize __class__ from type.__new__()Nick Coghlan2016-09-111-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 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.