]> granicus.if.org Git - python/commit
Refactor future feature handling
authorJeremy Hylton <jeremy@alum.mit.edu>
Fri, 10 Aug 2001 21:41:33 +0000 (21:41 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Fri, 10 Aug 2001 21:41:33 +0000 (21:41 +0000)
commitb857ba261fc468d956e350f51469efd7d5773da2
treeae9529e282d8d196eaaab2ab394e395626aca137
parentfdd12f66bb9740c7796441cd19db2a9d1502ee4f
Refactor future feature handling

Replace uses of PyCF_xxx with CO_xxx.

Replace individual feature slots in PyFutureFeatures with single
bitmask ff_features.

When flags must be transfered among the three parts of the interpreter
that care about them -- the pythonrun layer, the compiler, and the
future feature parser -- can simply or (|) the definitions.
Python/ceval.c
Python/compile.c
Python/future.c
Python/pythonrun.c