Okay, I think Guido's proposal is a good compromise. I already have a branch of dataclasses that should implement that behavior, so perhaps it was meant to be. :)
~>Ethan Smith On Fri, Dec 29, 2017 at 5:13 PM, Nick Coghlan <ncogh...@gmail.com> wrote: > > > On 30 Dec. 2017 11:01 am, "Ethan Smith" <et...@ethanhs.me> wrote: > > > > On Fri, Dec 29, 2017 at 4:52 PM, Guido van Rossum <gu...@python.org> > wrote: > >> I still think it should overrides anything that's just inherited but >> nothing that's defined in the class being decorated. >> >> > Could you explain why you are of this opinion? Is it a concern about > complexity of implementation? > > > Adding a new method to a base class shouldn't risk breaking existing > subclasses. > > If folks want to retain the base class implementation, they can request > that explicitly (and doing so isn't redundant at the point of subclass > definition the way it is for methods defined in the class body). > > Cheers, > Nick. > >
_______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com