Python3: How to make a function that can set a max size in stack : My native language is not English so there is an error with my sentences.

I made a stack below.

Now I want to add a function or method that allows you to specify the maximum size of the stack.

How do I need to change or add?

```
class MyStack:
    def __init__(self):
        self.myList = []
        self.top = -1
        self.size = 0
```

    def isEmpty(self):
        if (self.size > 0):
            return False
        else:
            return True

    def push(self, item):
        self.myList.append(item)
        self.size = self.size + 1
        self.top = self.top + 1

    def pop(self):
        if self.isEmpty():
            return None
        else:
            self.ret = self.myList.pop(self.top)
            self.size = self.top - 1
            self.top = self.top - 1
            return self.ret

    def peek(self):
        if self.isEmpty():
            return None
        else:
            return self.myList[self.top]
