Get the I{frame} at the top of the stack. @return: The top I{frame}, else None. @rtype: L{Frame}
(self)
| 262 | return frame |
| 263 | |
| 264 | def top(self): |
| 265 | """ |
| 266 | Get the I{frame} at the top of the stack. |
| 267 | @return: The top I{frame}, else None. |
| 268 | @rtype: L{Frame} |
| 269 | """ |
| 270 | if len(self.stack): |
| 271 | return self.stack[-1] |
| 272 | else: |
| 273 | return Frame.Empty() |
| 274 | |
| 275 | def pop(self): |
| 276 | """ |