aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_importlib/test_lazy.py
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2025-05-05 15:48:58 -0600
committerGitHub <noreply@github.com>2025-05-05 21:48:58 +0000
commitd270bb57923e1e319d7d701d7bcf97a31721e2be (patch)
tree82d52ed6fae09df16465092b07804907e9d57fa7 /Lib/test/test_importlib/test_lazy.py
parentf610bbdf74ea580b14353c6bfd08fd00bcbfa11e (diff)
downloadcpython-d270bb57923e1e319d7d701d7bcf97a31721e2be.tar.gz
cpython-d270bb57923e1e319d7d701d7bcf97a31721e2be.zip
gh-132775: Add _PyCode_VerifyStateless() (gh-133221)
"Stateless" code is a function or code object which does not rely on external state or internal state. It may rely on arguments and builtins, but not globals or a closure. I've left a comment in pycore_code.h that provides more detail. We also add _PyFunction_VerifyStateless(). The new functions will be used in several later changes that facilitate "sharing" functions and code objects between interpreters.
Diffstat (limited to 'Lib/test/test_importlib/test_lazy.py')
0 files changed, 0 insertions, 0 deletions