diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-08-10 21:38:04 +0000 |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-08-10 21:38:04 +0000 |
commit | 438f341cf3f7a54b65837f194e1c1392332a32c6 (patch) | |
tree | e54a046da7b4336919952d7c1bd16660e62ccfb4 /Python/future.c | |
parent | 822590558fc08666ead1eeb6931dda895c0466d2 (diff) | |
download | cpython-438f341cf3f7a54b65837f194e1c1392332a32c6.tar.gz |
Refactor future feature handling
Replace individual slots in PyFutureFeatures with a single bitmask
with one field per feature. The flags for this bitmask are the same
as the flags used in the co_flags slot of a code object.
XXX This means we waste several bits, because they are used
for co_flags but have no meaning for future statements. Don't
think this is an issue.
Remove the NESTED_SCOPES_DEFAULT define and others. Not sure what
they were for anyway.
Remove all the PyCF_xxx flags, but define PyCF_MASK in terms of the
CO_xxx flags that are relevant for this release.
Change definition of PyCompilerFlags so that cf_flags matches
co_flags.
Diffstat (limited to 'Python/future.c')
0 files changed, 0 insertions, 0 deletions