Difference between revisions of "Function decorators in Python"

From wikieduonline
Jump to navigation Jump to search
(Created page with "wikipedia:decorator")
 
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[wikipedia:decorator]]
+
[[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: