MCPcopy Index your code
hub / github.com/python/cpython / T

Class T

Lib/test/test_operator.py:467–469  ·  view source on GitHub ↗

Tuple subclass

Source from the content-addressed store, hash-verified

465
466 # interesting sequences
467 class T(tuple):
468 'Tuple subclass'
469 pass
470 self.assertEqual(operator.itemgetter(0)(T('abc')), 'a')
471 self.assertEqual(operator.itemgetter(0)(['a', 'b', 'c']), 'a')
472 self.assertEqual(operator.itemgetter(0)(range(100, 200)), 100)

Callers 1

test_itemgetterMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_itemgetterMethod · 0.56