MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / MyList

Class MyList

test/sql/test_resultset.py:1739–1747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1737 """
1738
1739 class MyList:
1740 def __init__(self, data):
1741 self.internal_list = data
1742
1743 def __len__(self):
1744 return len(self.internal_list)
1745
1746 def __getitem__(self, i):
1747 return list.__getitem__(self.internal_list, i)
1748
1749 parent = SimpleResultMetaData(["key"])
1750 proxy = Row(parent, [None], parent._key_to_index, MyList(["value"]))

Callers 1

test_nontuple_rowMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_nontuple_rowMethod · 0.56