Correspondingly, some objects don't need names at all.
sorted(pairs, key=lambda p: p[1])
Though in that case you might prefer using the operator module. sorted(pairs, key=operator.itemgetter(1))
The aspect of Ruby that frustrates me the most is over-use of anonymous blocks when a good name would help me enormously.