Return the current top-of-stack ``ScopeHandle``. Returns: ScopeHandle: The scope currently at the top of the active scope stack. Notes: If the current Python context does not yet have a scope stack, one is created automatically before the handle lookup.
()
| 70 | |
| 71 | |
| 72 | def get_handle() -> ScopeHandle: |
| 73 | """Return the current top-of-stack ``ScopeHandle``. |
| 74 | |
| 75 | Returns: |
| 76 | ScopeHandle: The scope currently at the top of the active scope stack. |
| 77 | |
| 78 | Notes: |
| 79 | If the current Python context does not yet have a scope stack, one is |
| 80 | created automatically before the handle lookup. |
| 81 | """ |
| 82 | _ensure_scope_stack() |
| 83 | return _native_get_handle() |
| 84 | |
| 85 | |
| 86 | def push( |
nothing calls this directly
no test coverage detected