Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Concept]: Decorators #2838

Merged
merged 49 commits into from
Jun 16, 2022
Merged
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
9093c00
`about.md` - how to use decorators
mathstrains21 Jan 6, 2022
bf8e6d2
Add `do_nothing` decorator
mathstrains21 Jan 6, 2022
8398ddc
Example that actually does something
mathstrains21 Jan 6, 2022
6e45226
First decorator modifying the original function
mathstrains21 Jan 7, 2022
59b9a3c
Explain the example
mathstrains21 Jan 7, 2022
a05cd9c
Function parameters and varying numbers of parameters
mathstrains21 Jan 7, 2022
935fbc8
Update about.md
bobahop May 29, 2022
3195b1d
Update about.md
bobahop May 29, 2022
f1b475e
Update about.md
bobahop May 29, 2022
fec71c7
Update about.md
bobahop May 29, 2022
3f063cc
Update about.md
bobahop May 29, 2022
2617405
Update about.md
bobahop May 29, 2022
20c603e
Update about.md
bobahop May 29, 2022
38bc6cc
Update concepts/decorators/about.md
bobahop Jun 13, 2022
f0ed0b8
Update concepts/decorators/about.md
bobahop Jun 13, 2022
2e5a3ce
Update concepts/decorators/about.md
bobahop Jun 13, 2022
bb1b05a
Update concepts/decorators/about.md
bobahop Jun 13, 2022
b7c51be
Update concepts/decorators/about.md
bobahop Jun 13, 2022
dc9d705
Update concepts/decorators/about.md
bobahop Jun 13, 2022
066b8fd
Update concepts/decorators/about.md
bobahop Jun 13, 2022
9f27365
Update concepts/decorators/about.md
bobahop Jun 13, 2022
56d7a6e
Update concepts/decorators/about.md
bobahop Jun 13, 2022
961d917
Update concepts/decorators/about.md
bobahop Jun 13, 2022
97e06a2
Update concepts/decorators/about.md
bobahop Jun 13, 2022
8a26678
Update concepts/decorators/about.md
bobahop Jun 13, 2022
155b722
Update concepts/decorators/about.md
bobahop Jun 13, 2022
23ad694
Update concepts/decorators/about.md
bobahop Jun 13, 2022
5897d62
Update concepts/decorators/about.md
bobahop Jun 13, 2022
4cf2503
Update concepts/decorators/about.md
bobahop Jun 13, 2022
bea08e9
Update concepts/decorators/about.md
bobahop Jun 13, 2022
936193d
Update concepts/decorators/about.md
bobahop Jun 13, 2022
bc3d624
Update concepts/decorators/about.md
bobahop Jun 13, 2022
99c8662
Update concepts/decorators/about.md
bobahop Jun 13, 2022
6721bd4
Update concepts/decorators/about.md
bobahop Jun 13, 2022
89e5971
Update concepts/decorators/about.md
bobahop Jun 13, 2022
f7d7bd4
Update concepts/decorators/about.md
bobahop Jun 13, 2022
844d117
Update concepts/decorators/about.md
bobahop Jun 13, 2022
7f7cc5b
Update concepts/decorators/about.md
bobahop Jun 13, 2022
324c224
Update concepts/decorators/about.md
bobahop Jun 13, 2022
0634ecc
Update concepts/decorators/about.md
bobahop Jun 13, 2022
cc93f0a
Update concepts/decorators/about.md
bobahop Jun 13, 2022
467d18c
Update about.md
bobahop Jun 13, 2022
19c4cc6
Update concepts/decorators/about.md
bobahop Jun 13, 2022
3a59ddd
White space "corrections"
Jun 15, 2022
26a5434
Update concepts/decorators/about.md
bobahop Jun 16, 2022
970ddd5
Update concepts/decorators/about.md
bobahop Jun 16, 2022
1dffa4d
Update concepts/decorators/about.md
bobahop Jun 16, 2022
a1066e0
Update concepts/decorators/about.md
bobahop Jun 16, 2022
fa7101f
Update about.md
bobahop Jun 16, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update concepts/decorators/about.md
Co-authored-by: BethanyG <BethanyG@users.noreply.github.com>
2 people authored and KOTP committed Jun 15, 2022

Unverified

This user has not yet uploaded their public signing key.
commit 5897d625427ce49b1a571104004abdbf7fa5d459
2 changes: 1 addition & 1 deletion concepts/decorators/about.md
Original file line number Diff line number Diff line change
@@ -183,7 +183,7 @@ Following is an example of a decorator for a function that takes an arbitrary nu
This works for doubling the return value from the function argument.
If we want to triple, quadruple, etc. the return value, we can add a parameter to the decorator itself.

### How to write a Decorator which has its own parameters
### Decorators Which Have Their own Parameters

Following is an example of a decorator that can be configured to multiply the decorated function's return value by an arbitrary amount: