Files
python/reference/concepts/decorators.md
Michael Morehouse 29478dd68c Organize concepts, eliminate duplication
* Stage 1

* Finish restructuring, add checkboxes.

* Minor format fixes

* fixing broken link

* fixing broken link

* fixing README link

* Fix multiples bad links

* Fix links in reference/concepts/keywords/README.md

* Correcting list description
2021-01-29 11:14:36 -05:00

577 B

Decorators

TODO: ADD MORE

  • a higher-order function that takes another function as an argument. The "decorating" function extends the behavior of the "decorated" function without explicitly modifying it (i.e. it wraps or decorates it). Called in python by using the @ symbol and the function name ahead of the function being decorated. The example uses pythons built-in property() as a decorator (@property) to return a "compound" read-only instance property made up of two separate instance attributes. robot-simulator