summaryrefslogtreecommitdiffstats
path: root/Lib/operator.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-44019: Add operator.call() to __all__ for the operator module (GH-29110)Kreus Amredes2021-10-211-1/+1
|
* bpo-44019: Implement operator.call(). (GH-27888)Antony Lee2021-09-241-0/+7
| | | | | | Having `operator.call(obj, arg)` mean `type(obj).__call__(obj, arg)` is consistent with the other dunder operators. The semantics with `*args, **kwargs` then follow naturally from the single-arg semantics.
* bpo-44558: Match countOf `is`/`==` treatment to c (GH-27007)Rupert Tombs2021-07-071-2/+2
|
* bpo-44558: Make the implementation consistency of operator.indexOf (GH-27012)Dong-hee Na2021-07-051-1/+1
|
* bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)Serhiy Storchaka2019-06-011-7/+3
|
* Issue #24379: Revert the operator.subscript patch (dccc4e63aef5) pending ↵Raymond Hettinger2015-11-021-27/+1
| | | | resolution of the related refcnt leak.
* Issue #24379: Add operator.subscript() as a convenience for building slices.Raymond Hettinger2015-08-171-1/+27
|
* added matmul and imatmul to operator.__all__Tal Einat2015-06-071-6/+6
|
* Issue #22955: attrgetter, itemgetter and methodcaller objects in the operatorSerhiy Storchaka2015-05-201-2/+44
| | | | | module now support pickling. Added readable and evaluable repr for these objects. Based on patch by Josh Rosenberg.
* PEP 465: a dedicated infix operator for matrix multiplication (closes #21176)Benjamin Peterson2014-04-101-0/+11
|
* Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-161-1/+0
| | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang lines in the unittestgui and checkpip scripts.
* Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon2013-07-041-1/+1
|
* Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-141-1/+1
| | | | ModuleNotFoundError.
* #16523: merge with 3.3.Ezio Melotti2013-05-081-5/+5
|
* Issue #16694: Add a pure Python implementation of the operator module.Antoine Pitrou2013-04-201-0/+412
Patch by Zachary Ware.