Also, if anyone else has any thoughts on what could be useful to add to operator
, this is a good place to add to the list.
So far I have:
a) operator.in_
& operator.not_in
b) operator.itemsetter
- maybe
Also, thinking about possibility of something similar to operator.itemgetter(*idxs)(obj, *defaults)
.
This could be a non-invasive path to implement Indexable get method. [1,2,3].get(4) # None - #116 by dg-pb