Jeroen Demeyer
530f506ac9
bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async (GH-13464)
...
Automatically replace
tp_print -> tp_vectorcall_offset
tp_compare -> tp_as_async
tp_reserved -> tp_as_async
2019-05-30 19:13:39 -07:00
Serhiy Storchaka
7934266875
bpo-35582: Inline arguments tuple unpacking in handwritten code. (GH-11524)
...
Inline PyArg_UnpackTuple() and _PyArg_UnpackStack() in performance
sensitive code in the builtins and operator modules.
2019-01-12 08:25:41 +02:00
Raymond Hettinger
2d53bed79c
bpo-35664: Optimize operator.itemgetter (GH-11435)
2019-01-07 09:38:41 -07:00
Zackery Spytz
5b83ef71d3
bpo-35303: Fix a reference leak in _operator.c's methodcaller_repr(). (GH-10689)
2018-11-23 21:26:46 +02:00
Siddhesh Poyarekar
55edd0c185
bpo-33012: Fix invalid function cast warnings with gcc 8 for METH_NOARGS. (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.
2018-04-29 21:59:33 +03:00
Serhiy Storchaka
6cca5c8459
bpo-30592: Fixed error messages for some builtins. ( #1996 )
...
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.
2017-06-08 14:41:19 +03:00
Serhiy Storchaka
68a001dd59
Issue #29460 : _PyArg_NoKeywords(), _PyArg_NoStackKeywords() and
...
_PyArg_NoPositional() now are macros.
2017-02-06 10:41:46 +02:00
Serhiy Storchaka
b813a0e948
Issue #20186 : Converted the _operator module to Argument Clinic.
...
Patch by Tal Einat.
2017-01-19 17:44:13 +02:00
Serhiy Storchaka
5ab81d787f
Issue #28959 : Added private macro PyDict_GET_SIZE for retrieving the size of dict.
2016-12-16 16:18:57 +02:00
Victor Stinner
7e7823a037
Issue #27809 : methodcaller_reduce() uses fast call
2016-08-23 00:23:23 +02:00
Benjamin Peterson
6423429325
merge 3.4 ( #27783 )
2016-08-16 23:37:33 -07:00
Benjamin Peterson
a12d92bec1
merge 3.3 ( #27783 )
2016-08-16 23:36:20 -07:00
Serhiy Storchaka
6dfcde5e29
Issue #26822 : Decreased an overhead of using _PyArg_NoKeywords() in calls of
...
itemgetter, attrgetter and methodcaller objects.
2016-04-29 09:10:55 +03:00
Serhiy Storchaka
c2a2a751cf
Issue #26822 : itemgetter, attrgetter and methodcaller objects no longer
...
silently ignore keyword arguments.
2016-04-23 10:51:39 +03:00
Benjamin Peterson
23a192d963
use logical rather than bit and
2014-05-11 16:17:02 -07:00
Ezio Melotti
0fbdf26158
#16523 : merge with 3.3.
2013-05-08 10:56:32 +03:00
Antoine Pitrou
a85017fbe3
Issue #16694 : Add a pure Python implementation of the operator module.
...
Patch by Zachary Ware.
2013-04-20 19:21:44 +02:00
Serhiy Storchaka
548de2b210
Issue #22955 : Fixed reference leak in attrgetter.repr().
2015-05-21 14:19:20 +03:00
Serhiy Storchaka
35ac5f8280
Issue #22955 : attrgetter, itemgetter and methodcaller objects in the operator
...
module now support pickling. Added readable and evaluable repr for these
objects. Based on patch by Josh Rosenberg.
2015-05-20 18:29:18 +03:00
R David Murray
861470c836
#16518 : Bring error messages in harmony with docs ("bytes-like object")
...
Some time ago we changed the docs to consistently use the term 'bytes-like
object' in all the contexts where bytes, bytearray, memoryview, etc are used.
This patch (by Ezio Melotti) completes that work by changing the error
messages that previously reported that certain types did "not support the
buffer interface" to instead say that a bytes-like object is required. (The
glossary entry for bytes-like object references the discussion of the buffer
protocol in the docs.)
2014-10-05 11:47:01 -04:00
Benjamin Peterson
89aea5075e
merge 3.4
2014-05-11 16:17:34 -07:00
Benjamin Peterson
d51374ed78
PEP 465: a dedicated infix operator for matrix multiplication ( closes #21176 )
2014-04-09 23:55:56 -04:00