MCPcopy Index your code
hub / github.com/RustPython/RustPython / C

Class C

Lib/test/datetimetester.py:1892–1903  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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