gh-132775: Add _PyCode_GetVarCounts() (gh-133128)
This helper is useful in a variety of ways, including in demonstrating how the different counts relate to one another. It will be used in a later change to help identify if a function is "stateless", meaning it doesn't have any free vars or globals. Note that a majority of this change is tests.
E
Eric Snow committed
94b4fcd806e7b692955173d309ea3b70a193ad96
Parent: 26c0248
Committed by GitHub <noreply@github.com>
on 4/30/2025, 6:19:20 PM