Difference between revisions of "Function decorators in Python"

From wikieduonline
Jump to navigation Jump to search
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[wikipedia:Function decorators]]
+
[[wikipedia:Decorators in Python]]
 +
 
 +
the decorator syntax is pure [[syntactic sugar]], using <code>[[@]]</code> as the keyword.
 +
 
 +
== Related ==
 +
* [[Java annotations]] which in part inspired decorators in [[Python]]
 +
* [[Python double under (dunder) methods]]
 +
* <code>[[@click]].option("--YourOption", type=click.STRING, required=True)</code>
 +
 
 +
== See also ==
 +
* {{Python}}
 +
 
 +
[[Category:Python]]

Latest revision as of 16:23, 27 September 2023

Advertising: