Jussi Piitulainen <jussi.piitulai...@helsinki.fi>: > operator.itemgetter(*selector)(fields) # ==> ('y', 'y', 'x') > > [...] > > operator.itemgetter(*selector)(field_dict) # ==> ('y', 'y', 'x') > > It's not quite the same but it's close and it works the same for > strings, lists, dicts, ...
Not quite the same, but nicely found anyway. Marko -- https://mail.python.org/mailman/listinfo/python-list