summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* bpo-30592: Fixed error messages for some builtins. (#1996)Serhiy Storchaka2017-06-085-6/+6
| | | | | Error messages when pass keyword arguments to some builtins that don't support keyword arguments contained double parenthesis: "()()". The regression was introduced by bpo-30534.
* bpo-30534: Fixed error messages when pass keyword arguments (#1901)Serhiy Storchaka2017-06-062-25/+26
| | | | | | | to functions implemented in C that don't support this. Also unified error messages for functions that don't take positional or keyword arguments.
* bpo-30509: Clean up calling type slots. (#1883)Serhiy Storchaka2017-06-011-68/+26
| | | Also speed up slot_sq_item.
* bpo-27945: Fixed various segfaults with dict. (#1657)Serhiy Storchaka2017-05-201-25/+43
| | | | Based on patches by Duane Griffin and Tim Mitchell.
* bpo-25794: Fix `type.__setattr__()` for non-interned attribute names. (#1652)Serhiy Storchaka2017-05-201-6/+33
| | | | Based on patch by Eryk Sun.
* bpo-28974: `object.__format__(x, '')` is now equivalent to `str(x)` (#506)Serhiy Storchaka2017-05-131-9/+1
| | | | rather than `format(str(self), '')`.
* bpo-30341: Improve _PyTrash_thread_destroy_chain() a little bit (#1545)Xiang Zhang2017-05-131-2/+15
| | | | | * add a comment about why we need to increase trash_delete_nesting * move increase and decrese outside of the loop
* bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1480)Xiang Zhang2017-05-101-3/+5
|
* bpo-29867: Add asserts in PyTuple_GET_SIZE, PyList_GET_SIZE and ↵Serhiy Storchaka2017-04-211-1/+1
| | | | PySet_GET_SIZE. (#751)
* bpo-29802: Fix reference counting in module-level struct functions (#1213)Serhiy Storchaka2017-04-201-0/+1
| | | | when pass arguments of wrong type.
* bpo-12414: Update code_sizeof() to take in account co_extra memory. (#1168)Dong-hee Na2017-04-201-2/+6
|
* bpo-30061: Check if PyObject_Size()/PySequence_Size()/PyMapping_Size() (#1096)Serhiy Storchaka2017-04-193-13/+13
| | | | | | raised an error. Replace them with using concrete types API that never fails if appropriate.
* fix a refleak in slot_sq_length (#1162)Xiang Zhang2017-04-161-0/+1
|
* bpo-30022: Get rid of using EnvironmentError and IOError (except test… (#1051)Serhiy Storchaka2017-04-161-1/+1
|
* bpo-29839: Raise ValueError rather than OverflowError in len() for negative ↵Serhiy Storchaka2017-04-161-6/+13
| | | | values. (#701)
* bpo-29838: Add asserts for checking results of sq_length and mq_length ↵Serhiy Storchaka2017-04-162-10/+26
| | | | | | slots. (#700) Negative result should be returned only when an error is set.
* bpo-29998: Pickling and copying ImportError now preserves name and path (#1010)Serhiy Storchaka2017-04-081-0/+48
| | | attributes.
* Expand the PySlice_GetIndicesEx macro. (#1023)Serhiy Storchaka2017-04-086-20/+23
|
* bpo-29914: Fix default implementations of __reduce__ and __reduce_ex__(). (#843)Serhiy Storchaka2017-04-082-38/+16
| | | | object.__reduce__() no longer takes arguments, object.__reduce_ex__() now requires one argument.
* Update Argument Clinic generated code for bpo-29878. (#1001)Serhiy Storchaka2017-04-054-6/+6
|
* bpo-29549: Fixes docstring for str.index (#256)Lisa Roach2017-04-052-5/+20
| | | | | | | | | | | | | | * Updates B.index documentation. * Updates str.index documentation, makes it Argument Clinic compatible. * Removes ArgumentClinic code. * Finishes string.index documentation. * Updates string.rindex documentation. * Documents B.rindex.
* bpo-29949: Fix set memory usage regression (GH-943)INADA Naoki2017-04-011-6/+5
| | | | | Revert "Minor factoring: move redundant resize scaling logic into the resize function." This reverts commit 4897300276d870f99459c82b937f0ac22450f0b6.
* Fix spurious MemoryError introduced by PR #886. (#930)T. Wouters2017-03-311-4/+4
| | | Fix MemoryError caused by moving around code in PR #886; nbytes was sometimes used unitinitalized (in non-debug builds, when use_calloc was false and elsize was 0).
* bpo-29941: Assert fixes (#886)T. Wouters2017-03-313-5/+5
| | | | | | | | Make a non-Py_DEBUG, asserts-enabled build of CPython possible. This means making sure helper functions are defined when NDEBUG is not defined, not just when Py_DEBUG is defined. Also fix a division-by-zero in obmalloc.c that went unnoticed because in Py_DEBUG mode, elsize is never zero.
* bpo-29935: Fixed error messages in the index() method of tuple, list and ↵Serhiy Storchaka2017-03-303-7/+7
| | | | | deque (#887) when pass indices of wrong type.
* bpo-29816: Shift operation now has less opportunity to raise OverflowError. ↵Serhiy Storchaka2017-03-301-22/+48
| | | | | | | (#680) ValueError always is raised rather than OverflowError for negative counts. Shifting zero with non-negative count always returns zero.
* bpo-24821: Fixed the slowing down to 25 times in the searching of some (#505)Serhiy Storchaka2017-03-301-6/+40
| | | | unlucky Unicode characters.
* bpo-29878: Add global instances of int for 0 and 1. (#852)Serhiy Storchaka2017-03-306-157/+69
|
* bpo-29927: Remove duplicate BufferError init and unnecessary semicolons (GH-866)Louie Lu2017-03-291-53/+51
|
* bpo-29924: Remove useless argument (#854)Sylvain2017-03-271-1/+1
|
* bpo-29894: Deprecate returning an instance of complex subclass from ↵Serhiy Storchaka2017-03-241-10/+19
| | | | | __complex__. (#798) In a future versions of Python this can be an error.
* bpo-29865: Use PyXXX_GET_SIZE macros rather than Py_SIZE for concrete types. ↵Serhiy Storchaka2017-03-215-15/+18
| | | | (#748)
* Don't use Py_SIZE for dict object. (#747)Serhiy Storchaka2017-03-211-1/+1
|
* bpo-28876: bool of large range raises OverflowError (#699)4kir42017-03-201-1/+11
|
* bpo-29116: Fix error messages for concatenating bytes and bytearray with ↵Serhiy Storchaka2017-03-192-2/+2
| | | | unsupported type. (#709)
* bpo-29116: Improve error message for concatenating str with non-str. (#710)Serhiy Storchaka2017-03-191-1/+10
|
* bpo-29748: Added the slice index converter in Argument Clinic. (#549)Serhiy Storchaka2017-03-191-3/+3
|
* bpo-29793: Convert some builtin types constructors to Argument Clinic. (#615)Serhiy Storchaka2017-03-1914-202/+527
|
* bpo-20186: Convert tuple object implementation to Argument Clinic. (#614)Serhiy Storchaka2017-03-192-46/+176
|
* bpo-20185: Convert typeobject.c to Argument Clinic. (#544)Serhiy Storchaka2017-03-192-76/+391
| | | Based on patch by Vajrasky Kok.
* bpo-29735: Optimize partial_call(): avoid tuple (#516)Victor Stinner2017-03-141-0/+16
| | | | | | | | * Add _PyObject_HasFastCall() * partial_call() now avoids temporary tuple to pass positional arguments if the callable supports the FASTCALL calling convention for positional arguments. * Fix also a performance regression in partial_call() if the callable doesn't support FASTCALL.
* bpo-28810: Update lnotab_notes.txt (#665)Ivan Levkivskyi2017-03-141-22/+28
|
* bpo-29548: Recommend PyObject_Call APIs over PyEval_Call APIs. (GH-75)INADA Naoki2017-03-141-33/+24
| | | | | | | | | | | | PyEval_Call* APIs are not documented and they doesn't respect PY_SSIZE_T_CLEAN. So add comment block which recommends PyObject_Call* APIs to ceval.h. This commit also changes PyEval_CallMethod and PyEval_CallFunction implementation same to PyObject_CallMethod and PyObject_CallFunction to reduce future maintenance cost. Optimization to avoid temporary tuple are copied too. PyEval_CallFunction(callable, "i", (int)i) now calls callable(i) instead of raising TypeError. But accepting this edge case is backward compatible.
* bpo-28856: Let %b format for bytes support objects that follow the buffer ↵Xiang Zhang2017-03-141-1/+14
| | | | | | protocol (GH-546)
* bpo-29730: replace some calls to PyNumber_Check and improve some error ↵Oren Milman2017-03-121-15/+19
| | | | messages (#650)
* Fix wrapping into StopIteration of return values in generators and ↵Yury Selivanov2017-03-121-2/+1
| | | | coroutines (#644)
* bpo-24037: Add Argument Clinic converter `bool(accept={int})`. (#485)Serhiy Storchaka2017-03-124-8/+8
|
* bpo-20185: Convert float object implementation to Argument Clinic. (#543)Serhiy Storchaka2017-03-112-156/+499
| | | Based on patch by Vajrasky Kok.
* bpo-20185: Convert list object implementation to Argument Clinic. (#542)Serhiy Storchaka2017-03-112-150/+523
|
* bpo-29749: Update int() docstring (GH-565)svelankar2017-03-091-1/+1
| | | The docstring did not properly represent the fact that the argument to int() was positional-only.