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 <ncoghlan at gmail.com> wrote: > > > On 30 Dec. 2017 11:01 am, "Ethan Smith" <ethan at ethanhs.me> wrote: > > > > On Fri, Dec 29, 2017 at 4:52 PM, Guido van Rossum <guido at 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. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20171229/a166d552/attachment.html>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4