The topmost item on the stack. Note: If the stack is empty, :const:`None` is returned.
(self)
| 298 | |
| 299 | @property |
| 300 | def top(self): |
| 301 | """The topmost item on the stack. |
| 302 | |
| 303 | Note: |
| 304 | If the stack is empty, :const:`None` is returned. |
| 305 | """ |
| 306 | try: |
| 307 | return self._local.stack[-1] |
| 308 | except (AttributeError, IndexError): |
| 309 | return None |
| 310 | |
| 311 | |
| 312 | class LocalManager: |
nothing calls this directly
no outgoing calls
no test coverage detected