Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-45439: Move _PyObject_CallNoArgs() to pycore_call.h (GH-28895) | Victor Stinner | 2021-10-12 | 1 | -2/+1 |
| | | | | | | | * Move _PyObject_CallNoArgs() to pycore_call.h (internal C API). * _ssl, _sqlite and _testcapi extensions now call the public PyObject_CallNoArgs() function, rather than _PyObject_CallNoArgs(). * _lsprof extension is now built with Py_BUILD_CORE_MODULE macro defined to get access to internal _PyObject_CallNoArgs(). | ||||
* | bpo-45439: Rename _PyObject_CallNoArg() to _PyObject_CallNoArgs() (GH-28891) | Victor Stinner | 2021-10-11 | 1 | -1/+1 |
| | | | | | Fix typo in the private _PyObject_CallNoArg() function name: rename it to _PyObject_CallNoArgs() to be consistent with the public function PyObject_CallNoArgs(). | ||||
* | Clean up initialization __class_getitem__ with Py_GenericAlias. (GH-28450) | Serhiy Storchaka | 2021-09-19 | 1 | -1/+1 |
| | | | | | The cast to PyCFunction is redundant. Overuse of redundant casts can hide actual bugs. | ||||
* | bpo-43413: Fix handling keyword arguments in subclasses of some buitin ↵ | Serhiy Storchaka | 2021-09-12 | 1 | -2/+4 |
| | | | | | | | | classes (GH-26456) * Constructors of subclasses of some buitin classes (e.g. tuple, list, frozenset) no longer accept arbitrary keyword arguments. * Subclass of set can now define a __new__() method with additional keyword parameters without overriding also __init__(). | ||||
* | bpo-44563: Fix error handling in tee.fromiterable() (GH-27020) | Serhiy Storchaka | 2021-07-05 | 1 | -9/+10 |
| | | | In debug build failed tee.fromiterable() corrupted the linked list of all GC objects. | ||||
* | bpo-42536: GC track recycled tuples (GH-23623) | Brandt Bucher | 2020-12-05 | 1 | -0/+26 |
| | | | | | | | | | | | | | | | | Several built-in and standard library types now ensure that their internal result tuples are always tracked by the garbage collector: - collections.OrderedDict.items - dict.items - enumerate - functools.reduce - itertools.combinations - itertools.combinations_with_replacement - itertools.permutations - itertools.product - itertools.zip_longest - zip Previously, they could have become untracked by a prior garbage collection. | ||||
* | bpo-38200: Add itertools.pairwise() (GH-23549) | Raymond Hettinger | 2020-12-01 | 1 | -1/+136 |
| | |||||
* | bpo-42161: Modules/ uses _PyLong_GetZero() and _PyLong_GetOne() (GH-22998) | Victor Stinner | 2020-10-27 | 1 | -3/+5 |
| | | | | | | Use _PyLong_GetZero() and _PyLong_GetOne() in Modules/ directory. _cursesmodule.c and zoneinfo.c are now built with Py_BUILD_CORE_MODULE macro defined. | ||||
* | bpo-41078: Rename pycore_tupleobject.h to pycore_tuple.h (GH-21056) | Victor Stinner | 2020-06-22 | 1 | -1/+1 |
| | |||||
* | bpo-40898: Remove redundant if statements in tp_traverse (GH-20692) | Hai Shi | 2020-06-07 | 1 | -2/+1 |
| | |||||
* | bpo-40268: Remove unused structmember.h includes (GH-19530) | Victor Stinner | 2020-04-15 | 1 | -1/+1 |
| | | | | | | If only offsetof() is needed: include stddef.h instead. When structmember.h is used, add a comment explaining that PyMemberDef is used. | ||||
* | Generic itertools.chain (GH-19417) | Ethan Smith | 2020-04-10 | 1 | -0/+2 |
| | |||||
* | bpo-40036: Deleting duplicates in itertoolsmodule.c (GH-18958) | AlphaHot | 2020-03-23 | 1 | -26/+0 |
| | |||||
* | bpo-40024: Add PyModule_AddType() helper function (GH-19088) | Dong-hee Na | 2020-03-22 | 1 | -11/+3 |
| | |||||
* | bpo-1635741: Port itertools module to multiphase initialization (GH-19044) | Dong-hee Na | 2020-03-17 | 1 | -35/+42 |
| | |||||
* | bpo-39573: Use Py_IS_TYPE() macro to check for types (GH-18809) | Andy Lester | 2020-03-06 | 1 | -1/+1 |
| | | | Co-authored-by: Victor Stinner <vstinner@python.org> | ||||
* | bpo-39573: Finish converting to new Py_IS_TYPE() macro (GH-18601) | Andy Lester | 2020-03-04 | 1 | -1/+1 |
| | |||||
* | bpo-39245: Switch to public API for Vectorcall (GH-18460) | Petr Viktorin | 2020-02-11 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bulk of this patch was generated automatically with: for name in \ PyObject_Vectorcall \ Py_TPFLAGS_HAVE_VECTORCALL \ PyObject_VectorcallMethod \ PyVectorcall_Function \ PyObject_CallOneArg \ PyObject_CallMethodNoArgs \ PyObject_CallMethodOneArg \ ; do echo $name git grep -lwz _$name | xargs -0 sed -i "s/\b_$name\b/$name/g" done old=_PyObject_FastCallDict new=PyObject_VectorcallDict git grep -lwz $old | xargs -0 sed -i "s/\b$old\b/$new/g" and then cleaned up: - Revert changes to in docs & news - Revert changes to backcompat defines in headers - Nudge misaligned comments | ||||
* | bpo-39573: Add Py_SET_TYPE() function (GH-18394) | Victor Stinner | 2020-02-07 | 1 | -3/+5 |
| | | | Add Py_SET_TYPE() function to set the type of an object. | ||||
* | Minor readability improvement for argument handling in itertools.repeat() ↵ | Raymond Hettinger | 2019-11-10 | 1 | -5/+5 |
| | | | | | | (GH-17101) | ||||
* | Permutations Python code equivalent in comment was invalid for Python 3 ↵ | Sergey | 2019-10-29 | 1 | -3/+6 |
| | | | | (GH-16927) | ||||
* | bpo-34410: Fix a crash in the tee iterator when re-enter it. (GH-15625) | Serhiy Storchaka | 2019-09-09 | 1 | -0/+9 |
| | | | | RuntimeError is now raised in this case. | ||||
* | Revert "Raise a RuntimeError when tee iterator is consumed from different ↵ | Serhiy Storchaka | 2019-09-09 | 1 | -8/+0 |
| | | | | | threads (GH-15567)" (GH-15736) This reverts commit fa220ec7633e9674baccc28dde987f29d7f65141. | ||||
* | bpo-15999: Clean up of handling boolean arguments. (GH-15610) | Serhiy Storchaka | 2019-09-01 | 1 | -3/+3 |
| | | | | | | * Use the 'p' format unit instead of manually called PyObject_IsTrue(). * Pass boolean value instead 0/1 integers to functions that needs boolean. * Convert some arguments to boolean only once. | ||||
* | bpo-37976: Prevent shadowing of TypeError in zip() (GH-15592) | Sergey Fedoseev | 2019-08-30 | 1 | -4/+0 |
| | |||||
* | Raise a RuntimeError when tee iterator is consumed from different threads ↵ | HongWeipeng | 2019-08-29 | 1 | -0/+8 |
| | | | | (GH-15567) | ||||
* | bpo-37483: add _PyObject_CallOneArg() function (#14558) | Jeroen Demeyer | 2019-07-04 | 1 | -4/+4 |
| | |||||
* | bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async ↵ | Jeroen Demeyer | 2019-05-31 | 1 | -40/+40 |
| | | | | | | | | | (GH-13464) Automatically replace tp_print -> tp_vectorcall_offset tp_compare -> tp_as_async tp_reserved -> tp_as_async | ||||
* | bpo-36430: Fix a possible reference leak in itertools.count(). (GH-12551) | Zackery Spytz | 2019-03-26 | 1 | -0/+1 |
| | |||||
* | bpo-36030: Add _PyTuple_FromArray() function (GH-11954) | Sergey Fedoseev | 2019-02-25 | 1 | -24/+5 |
| | |||||
* | bpo-35459: Use PyDict_GetItemWithError() instead of PyDict_GetItem(). (GH-11112) | Serhiy Storchaka | 2019-02-25 | 1 | -4/+10 |
| | |||||
* | bpo-35444: Unify and optimize the helper for getting a builtin object. ↵ | Serhiy Storchaka | 2018-12-11 | 1 | -1/+2 |
| | | | | | | | | (GH-11047) This speeds up pickling of some iterators. This fixes also error handling in pickling methods when fail to look up builtin "getattr". | ||||
* | bpo-34659: Adds initial kwarg to itertools.accumulate() (GH-9345) | Lisa Roach | 2018-09-24 | 1 | -3/+29 |
| | |||||
* | bpo-20180: convert most of itertoolsmodule.c to use Argument Clinic (GH-9164) | Tal Einat | 2018-09-11 | 1 | -218/+245 |
| | |||||
* | bpo-20180: itertools.groupby Argument Clinic conversion (GH-4170) | Tal Einat | 2018-09-10 | 1 | -23/+41 |
| | |||||
* | bpo-33012: Fix invalid function cast warnings with gcc 8 for METH_NOARGS. ↵ | Siddhesh Poyarekar | 2018-04-29 | 1 | -23/+23 |
| | | | | | | | | | (GH-6030) METH_NOARGS functions need only a single argument but they are cast into a PyCFunction, which takes two arguments. This triggers an invalid function cast warning in gcc8 due to the argument mismatch. Fix this by adding a dummy unused argument. | ||||
* | bpo-32747: Remove trailing spaces in docstrings. (GH-5491) | oldk | 2018-02-02 | 1 | -5/+5 |
| | |||||
* | bpo-32571: Avoid raising unneeded AttributeError and silencing it in C code ↵ | Serhiy Storchaka | 2018-01-25 | 1 | -6/+4 |
| | | | | | (GH-5222) Add two new private APIs: _PyObject_LookupAttr() and _PyObject_LookupAttrId() | ||||
* | bpo-31572: Silence only AttributeError when get the __copy__ attribute in ↵ | Serhiy Storchaka | 2017-11-11 | 1 | -7/+25 |
| | | | | itertools.tee(). (#3724) | ||||
* | bpo-30347: Stop crashes when concurrently iterate over itertools.groupby() ↵ | Serhiy Storchaka | 2017-09-26 | 1 | -36/+31 |
| | | | | iterators. (#1557) | ||||
* | bpo-27385: Clarify docstring for groupby() (#3738) | Raymond Hettinger | 2017-09-25 | 1 | -2/+3 |
| | |||||
* | bpo-30346: An iterator produced by the itertools.groupby() iterator (#1569) | Serhiy Storchaka | 2017-09-24 | 1 | -0/+8 |
| | | | now becames exhausted after advancing the groupby iterator. | ||||
* | bpo-27541: Reprs of subclasses of some classes now contain actual type name. ↵ | Serhiy Storchaka | 2017-09-21 | 1 | -6/+13 |
| | | | | | (#3631) Affected classes are bytearray, array, deque, defaultdict, count and repeat. | ||||
* | bpo-31497: Add private helper _PyType_Name(). (#3630) | Serhiy Storchaka | 2017-09-17 | 1 | -4/+3 |
| | | | | This function returns the last component of tp_name after a dot. Returns tp_name itself if it doesn't contain a dot. | ||||
* | bpo-30592: Fixed error messages for some builtins. (#1996) | Serhiy Storchaka | 2017-06-08 | 1 | -7/+7 |
| | | | | | 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-30537: use PyNumber in itertools.islice instead of PyLong (#1918) | Will Roberts | 2017-06-08 | 1 | -4/+4 |
| | | | | | | | | * bpo-30537: use PyNumber in itertools instead of PyLong * bpo-30537: revert changes except to islice_new * bpo-30537: test itertools.islice and add entry to Misc/NEWS | ||||
* | bpo-30061: Check if PyObject_Size()/PySequence_Size()/PyMapping_Size() (#1096) | Serhiy Storchaka | 2017-04-19 | 1 | -1/+2 |
| | | | | | | raised an error. Replace them with using concrete types API that never fails if appropriate. | ||||
* | bpo-29942: Fix the use of recursion in itertools.chain.from_iterable. (#889) | T. Wouters | 2017-03-30 | 1 | -24/+28 |
| | | | | | Fix the use of recursion in itertools.chain.from_iterable. Using recursion is unnecessary, and can easily cause stack overflows, especially when building in low optimization modes or with Py_DEBUG enabled. | ||||
* | bpo-29878: Add global instances of int for 0 and 1. (#852) | Serhiy Storchaka | 2017-03-30 | 1 | -13/+5 |
| | |||||
* | bpo-29865: Use PyXXX_GET_SIZE macros rather than Py_SIZE for concrete types. ↵ | Serhiy Storchaka | 2017-03-21 | 1 | -2/+2 |
| | | | | (#748) |