F and _ (singleton)
from placeholder import _
_.real
F(operator.attrgetter('real'))
nums = (0 + 2j), (1 + 1j), (2 + 0j)
min(nums, key=_.real)
F(operator.itemgetter(0))
pairs = "ac", "bb", "ca"
min(pairs, key=_[0])
import itertools
list(itertools.accumulate(range(1, 6), _ * _))
list(itertools.filterfalse(_ % 2, range(10)))
list(filter(_ % 2 == 0, range(10)))
list(filter(abs(_) < 1, [-1, 0, 1]))
M and m (singleton)
Support for attrgetter(*), itemgetter(*), and methodcaller.
from placeholder import m
m("real", "imag")
F(operator.attrgetter('real', 'imag'))
F(operator.itemgetter(0, -1))
operator.methodcaller('split', '-')