Lines Matching refs:itemgetter
369 f = operator.itemgetter(2)
374 f = operator.itemgetter(10)
380 self.assertRaises(SyntaxError, operator.itemgetter(42), C())
382 f = operator.itemgetter('name')
384 self.assertRaises(TypeError, operator.itemgetter)
387 f = operator.itemgetter('key')
389 f = operator.itemgetter('nonkey')
394 getcount = operator.itemgetter(1)
401 self.assertEqual(operator.itemgetter(2,10,5)(data), ('2', '10', '5'))
402 self.assertRaises(TypeError, operator.itemgetter(2, 'x', 5), data)
543 itemgetter = self.module.itemgetter
547 f = itemgetter(2)
552 f = itemgetter(2, 0, 4)