Difference between revisions of "Function decorators in Python"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
* [[Java annotations]] which in part inspired decorators in [[Python]] | * [[Java annotations]] which in part inspired decorators in [[Python]] | ||
* [[Python double under (dunder) methods]] | * [[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
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, 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
Advertising: