Push an element to the top of the stack.
(self, data)
| 23 | return str(self.stack) |
| 24 | |
| 25 | def push(self, data): |
| 26 | """ Push an element to the top of the stack.""" |
| 27 | if len(self.stack) >= self.limit: |
| 28 | raise StackOverflowError |
| 29 | self.stack.append(data) |
| 30 | |
| 31 | def pop(self): |
| 32 | """ Pop an element off of the top of the stack.""" |
no outgoing calls
no test coverage detected