<div dir="ltr"><div><div>Okay, I think Guido's proposal is a good compromise.<br><br></div>I already have a branch of dataclasses that should implement that behavior, so perhaps it was meant to be. :)<br><br></div>~>Ethan Smith<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 29, 2017 at 5:13 PM, Nick Coghlan <span dir="ltr"><<a href="mailto:ncoghlan@gmail.com" target="_blank">ncoghlan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><span class=""><div><br><div class="gmail_extra"><br><div class="gmail_quote">On 30 Dec. 2017 11:01 am, "Ethan Smith" <<a href="mailto:ethan@ethanhs.me" target="_blank">ethan@ethanhs.me</a>> wrote:<br type="attribution"><blockquote class="m_-128212357097287355quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><div class="m_-128212357097287355quoted-text">On Fri, Dec 29, 2017 at 4:52 PM, Guido van Rossum <span dir="ltr"><<a href="mailto:guido@python.org" target="_blank">guido@python.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">I still think it should overrides anything that's just inherited but nothing that's defined in the class being decorated.</div><div class="gmail_extra"><br></div></blockquote><div><br></div></div><div>Could you explain why you are of this opinion? Is it a concern about complexity of implementation?<br></div></div></div></div></blockquote></div></div></div><div dir="auto"><br></div></span><div dir="auto">Adding a new method to a base class shouldn't risk breaking existing subclasses.</div><div dir="auto"><br></div><div dir="auto">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).</div><div dir="auto"><br></div><div dir="auto">Cheers,</div><div dir="auto">Nick.</div><div dir="auto"><br></div></div>
</blockquote></div><br></div>