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

Class Point

Lib/test/test_collections.py:670–671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

668
669 def test_namedtuple_subclass_issue_24931(self):
670 class Point(namedtuple('_Point', ['x', 'y'])):
671 pass
672
673 a = Point(3, 4)
674 self.assertEqual(a._asdict(), OrderedDict([('x', 3), ('y', 4)]))

Callers 6

test_defaultsMethod · 0.70
test_readonlyMethod · 0.70
test_instanceMethod · 0.70
test_tuplenessMethod · 0.70
test_field_descriptorMethod · 0.70

Calls 1

namedtupleFunction · 0.90

Tested by 6

test_defaultsMethod · 0.56
test_readonlyMethod · 0.56
test_instanceMethod · 0.56
test_tuplenessMethod · 0.56
test_field_descriptorMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…