1. Lambda tuple args are not yet supported -- I actually didn't know that was a thing :\ -- https://github.com/google/grumpy/issues/17
2. Even if that worked properly, sorted() is not yet implemented: https://github.com/google/grumpy/issues/16
def func((a,b)): return b mytuple = 1,2 print func(mytuple)
def func(t): a,b = t return b
This is probably the cleaner way to write that:
key=operator.itemgetter(1)
This is probably the cleaner way to write that: