Difference between revisions of "Function decorators in Python"
Jump to navigation
Jump to search
| (9 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | [[wikipedia: | + | [[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
wikipedia:Decorators in Python
the decorator syntax is pure syntactic sugar, using @ as the keyword.
Related[edit]
- Java annotations which in part inspired decorators in Python
- Python double under (dunder) methods
@click.option("--YourOption", type=click.STRING, required=True)
See also[edit]
- Python, PIP, Global interpreter lock (GIL), Flask, Django, Marshmallow,
def, logging, Pandas, Numpy, AWS Chalice,import,from,tuple,list, Python exceptions,virtualenv,.append,pytz,TZ,print,python3 -c,os, PEP, Python Institute, Methods: Dunder methods, Flake8, Python collections, Function decorators in Python, Click python library, Python module, Flower,kwargs, Black (Python), Python list structure, Mypy,variables, Casting,try:, pydoc, argparse, Anaconda,pyenv, setup.py, python3 --version, python3 --help, Data Classes, raise, glob
Advertising: