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

Let's create a class called `limit_uses`. I'm deliberately "breaking" the naming convention for classes with a lower snake case name. I want this class to be a direct replacement for the `limit_uses()` function from Day 5 It can be used like a function, so it's fine to bend the convention!

0 likes 1 replies

?

Replies

Monty @ The Python Coding Place · Mar 22

`.limit` is now an instance attribute but it serves the same purpose as the parameter `limit` in the function-based decorator.