Message362831
1.
def __or__(self, other):
return self.__class__(self.maps[0] | other, *self.maps[1:])
def __ror__(self, other):
return other | dict(self)
2.
def __or__(self, other):
return self.__class__(other, *self.maps)
def __ror__(self, other):
return self.__class__(*self.maps, other)
There are problems with both variants, so I think it may be better to not add this operator to ChainMap. |
|
Date |
User |
Action |
Args |
2020-02-27 20:00:34 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, rhettinger, mark.dickinson, scoder, steve.dower, josh.r, Aaron Hall, slam, xtreak, brandtbucher |
2020-02-27 20:00:33 | serhiy.storchaka | set | messageid: <1582833633.75.0.455316226946.issue36144@roundup.psfhosted.org> |
2020-02-27 20:00:33 | serhiy.storchaka | link | issue36144 messages |
2020-02-27 20:00:33 | serhiy.storchaka | create | |
|