bpo-36144: Add PEP 584 operators to collections.ChainMap by curtisbucher · Pull Request #18832 · python/cpython

added 10 commits

February 27, 2020 21:26
Created __ior__, __or__ and __ror__ methods in ChainMap class.
Added testing for | and |= operators for ChainMap objects.
Renamed test_union operators, fixed errors and style problems raised by brandtbucher.
Added testing for union operator between ChainMap and iterable of key-value pairs.
Gave more descriptive variable names and eliminated unnecessary tmp variable.

brandtbucher

Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com>

@curtisbucher

brandtbucher

gvanrossum

brandtbucher

@curtisbucher

@curtisbucher

@curtisbucher

gvanrossum

brandtbucher