Pop the frame at the top of the stack. @return: The popped frame, else None. @rtype: L{Frame}
(self)
| 273 | return Frame.Empty() |
| 274 | |
| 275 | def pop(self): |
| 276 | """ |
| 277 | Pop the frame at the top of the stack. |
| 278 | @return: The popped frame, else None. |
| 279 | @rtype: L{Frame} |
| 280 | """ |
| 281 | if len(self.stack): |
| 282 | popped = self.stack.pop() |
| 283 | log.debug('pop: (%s)\n%s', Repr(popped), Repr(self.stack)) |
| 284 | return popped |
| 285 | else: |
| 286 | log.debug('stack empty, not-popped') |
| 287 | return None |
| 288 | |
| 289 | def depth(self): |
| 290 | """ |