
Oct. 17, 2019
7:22 a.m.
Brandt Bucher wrote:
At long last, Steven D'Aprano and I have pushed a second draft of PEP 584 (dictionary addition): https://www.python.org/dev/peps/pep-0584/ The accompanying reference implementation is on GitHub: https://github.com/brandtbucher/cpython/tree/addiction
Do you know if there is an existing proposal for subtraction of iterables from lists and tuples? That would be extremely handy to me sometimes? In [1]: [1,2,3] - [2] --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-1-220e30c8610a> in <module> ----> 1 [1,2,3] - [2] TypeError: unsupported operand type(s) for -: 'list' and 'list'