]> granicus.if.org Git - python/commit
Refactor future feature handling
authorJeremy Hylton <jeremy@alum.mit.edu>
Fri, 10 Aug 2001 21:38:04 +0000 (21:38 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Fri, 10 Aug 2001 21:38:04 +0000 (21:38 +0000)
commitfdd12f66bb9740c7796441cd19db2a9d1502ee4f
treea6675b161968ac32289e25c326da4a3b17b18d34
parent11ee90289c9bf5cf1752654688a436c8d2b403ab
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.
Include/compile.h
Include/pythonrun.h