Monty @ The Python Coding Place @thepythoncodingplace.com · Mar 17

Next, you can enclose all of this code–the decorator with its inner function–within another function. You can call this `limit_uses()`. This is the function you'll use in your code to decorate other functions. It accepts one parameter in this case.

0 likes 1 replies

?

Replies

Monty @ The Python Coding Place · Mar 17

This new function, `limit_uses()`, is technically not a decorator, even though many will call it a decorator. A decorator takes a function and returns a function. But `limit_uses()` takes an integer as an argument, not a function