Difference between revisions of "Function decorators in Python"

From wikieduonline
Jump to navigation Jump to search
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[wikipedia:Decorators in Python]]
 
[[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 ==
 
== See also ==

Latest revision as of 16:23, 27 September 2023

Advertising: