Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_defaults
Method · 0.70
test_readonly
Method · 0.70
test_instance
Method · 0.70
test_tupleness
Method · 0.70
test_namedtuple_subclass_issue_24931
Method · 0.70
test_field_descriptor
Method · 0.70
Calls
1
namedtuple
Function · 0.90
Tested by
6
test_defaults
Method · 0.56
test_readonly
Method · 0.56
test_instance
Method · 0.56
test_tupleness
Method · 0.56
test_namedtuple_subclass_issue_24931
Method · 0.56
test_field_descriptor
Method · 0.56
Used in the wild
real call sites across dependent graphs
searching dependent graphs…