<div><div dir="auto">Also:</div></div><div dir="auto"><br></div><div dir="auto">@something</div><div dir="auto">def fun():</div><div dir="auto">...</div><div dir="auto"><br></div><div dir="auto">Is exactly the same as:</div><div dir="auto"><br></div><div dir="auto">def fun()</div><div dir="auto">...</div><div dir="auto"><br></div><div dir="auto">fun = something(fun)</div><div dir="auto"><br></div><div dir="auto">So you can’t make a distinction based whether a given usage  is as a decoration.</div><div dir="auto"><br></div><div dir="auto">-CHB</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 19, 2019 at 12:26 PM Greg Ewing <<a href="mailto:greg.ewing@canterbury.ac.nz">greg.ewing@canterbury.ac.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sylvain MARIE via Python-ideas wrote:<br>
> `my_decorator(foo)` when foo is a callable will always look like<br>
> `@my_decorator` applied to function foo, because that's how the language is<br>
> designed.<br>
<br>
I don't think it's worth doing anything to change that. Everywhere<br>
else in the language, there's a very clear distinction between<br>
'foo' and 'foo()', and you confuse them at your peril. I don't see<br>
why decorators should be any different.<br>
<br>
-- <br>
Greg<br>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">http://python.org/psf/codeofconduct/</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Christopher Barker, PhD<br><br> Python Language Consulting<br>  - Teaching<br>  - Scientific Software Development<br>  - Desktop GUI and Web Development<br>  - wxPython, numpy, scipy, Cython<br></div>