<div dir="ltr">On Thu, Oct 25, 2018 at 7:41 AM Calvin Spealman <<a href="mailto:cspealma@redhat.com">cspealma@redhat.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_quote"><div dir="ltr">On Thu, Oct 25, 2018 at 9:28 AM Anders Hovmöller <<a href="mailto:boxed@killingar.net" target="_blank">boxed@killingar.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">[Calvin]<br><div>
> The point is not saving a line or typing, but saving a thought. Expressing the intent of the factory function more clearly.</div></blockquote></div></div></blockquote><div>[...] <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div>You know what, I <i>can't</i> think of other good examples than slightly improved decorators. So, maybe its not that great an idea if it can't be applied to at least a few more use cases.<br></div></div></div></blockquote><div><br></div><div>I appreciate that you're saving a thought, and I think it isn't a bad idea. It is indeed a very common pattern in decorators. But it would be a bit of a one-trick pony, since there aren't many *other* situations where it's useful. Compared to decorators themselves (which also, as was pointed out, do so much more than "saving a line") the use case is just much narrower. So unless we find more use cases, or until we can convince ourselves that we can use `def (args): block` in all expression contexts, I guess it'll have to remain an idea. Thank you though! It was a fascinating one.<br></div></div><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">--Guido van Rossum (<a href="http://python.org/~guido" target="_blank">python.org/~guido</a>)</div></div>