If you want to take a really deep dive, you should read these exhaustive articles by Graham Dumpleton. However, if you intend to get started and ge...
For further actions, you may consider blocking this person and/or reporting abuse
In this piece of code:
`
is it missing some identation?
Good catch! I'm pretty sure that should look like:
There's also the pattern with
functools.partial
that allows you to call decorators with optional arguments without the parenthesis if you want to use the default values.Now you can apply the decorator without the parenthesis if you want to use the default value.
There's no way of getting it wrong when you apply the decorator. IMO it's the simplest and most readable pattern. I use it all the time.
Looks like a useful article. But can you please correct the indentation of the Python code?
timed does not exist, maybe thou should test the code before posting it!