<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 01.04.2016 11:52, Terry Reedy wrote:<br>
</div>
<blockquote cite="mid:ndlgd5$6sc$1@ger.gmane.org" type="cite">On
4/1/2016 5:25 AM, Sven R. Kunze wrote:
<br>
<br>
<blockquote type="cite">I remember this "issue" with decorators as
well.
<br>
<br>
@property
<br>
def foo....
<br>
<br>
@lru_cache() # really?
<br>
def bar...
<br>
</blockquote>
<br>
There is a sematic difference between the two examples. The ()s
are not optional. 'property' is a decorator that is applied to foo
after it is defined. 'lru_cache()' is a function call that
returns a decorator. Quite different.<br>
</blockquote>
<br>
@Terry<br>
Thanks for snipping away the relevant explanation and not addressing
my point. >.<
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<br>
<br>
@others<br>
Never said it were optional. Decorating and function definitions
have a declarative style in common. The point was that these ()
don't serve anything in case of declarations.<br>
<br>
<br>
Best,<br>
Sven<br>
<br>
<br>
</body>
</html>