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

Class C

Lib/test/datetimetester.py:1897–1908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1895 def test_subclass_date(self):
1896
1897 class C(self.theclass):
1898 theAnswer = 42
1899
1900 def __new__(cls, *args, **kws):
1901 temp = kws.copy()
1902 extra = temp.pop('extra')
1903 result = self.theclass.__new__(cls, *args, **temp)
1904 result.extra = extra
1905 return result
1906
1907 def newmeth(self, start):
1908 return start + self.year + self.month
1909
1910 args = 2003, 4, 14
1911

Callers 5

test_subclass_dateMethod · 0.70
test_subclass_timeMethod · 0.70
test_subclass_timetzMethod · 0.70

Calls

no outgoing calls

Tested by 5

test_subclass_dateMethod · 0.56
test_subclass_timeMethod · 0.56
test_subclass_timetzMethod · 0.56