Raymond Hettinger <raymond.hettin...@gmail.com> added the comment: Would it be worthwhile to show an example of a subclass that overrides or extends __new__?
Elsewhere in Python, the usual technique for changing method defaults is for a subclass to override or extend the method in question. class A: def somemeth(self, value: bool = True): print(value) class B(A): def somemeth(self, value: bool = False): super().somemeth(value) ---------- nosy: +rhettinger _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33077> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com