Add explanatory comment to ZStackBottom sentinel

This commit is contained in:
Jared Miller 2026-02-09 21:46:40 -05:00
parent eeb65e0cc2
commit 28a097997c
Signed by: shmup
GPG key ID: 22B5C6D66A38B06C

View file

@ -94,6 +94,12 @@ class ZRoutine:
class ZStackBottom:
"""Sentinel object at the bottom of the call stack.
Includes stack and local_vars attributes so code that walks the call
stack can treat all frames uniformly without special-case checks for
the bottom sentinel.
"""
def __init__(self):
self.program_counter = 0 # used as a cache only
self.stack = []