| 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 |
no outgoing calls