]> granicus.if.org Git - python/commit
If a code object is compiled with nested scopes, define the CO_NESTED flag.
authorJeremy Hylton <jeremy@alum.mit.edu>
Thu, 22 Mar 2001 02:32:48 +0000 (02:32 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Thu, 22 Mar 2001 02:32:48 +0000 (02:32 +0000)
commit061d106a0f56c5b4171ad8c56ecfaa6cefb27385
tree5f8752ceddffe173d9bf0b6de2781cbfd67e8f08
parentf6e47ad4bd12ffa633d51071520722be32fb252d
If a code object is compiled with nested scopes, define the CO_NESTED flag.

Add PyEval_GetNestedScopes() which returns a non-zero value if the
code for the current interpreter frame has CO_NESTED defined.
Include/ceval.h
Include/compile.h
Python/ceval.c
Python/compile.c