diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-02-19 18:49:30 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-02-19 18:49:30 (GMT) |
commit | 0090a4c10d698e273e278a0eec50448a1e958bae (patch) | |
tree | fc920f6e73ce78d06738bfe80cc876634e1528c8 /Include/code.h | |
parent | f415d5f830e8af763b12ad2c89aa0578b2402e93 (diff) | |
download | cpython-0090a4c10d698e273e278a0eec50448a1e958bae.zip cpython-0090a4c10d698e273e278a0eec50448a1e958bae.tar.gz cpython-0090a4c10d698e273e278a0eec50448a1e958bae.tar.bz2 |
Generators have been permanent for a while. This comment is no longer applicable.
Diffstat (limited to 'Include/code.h')
-rw-r--r-- | Include/code.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Include/code.h b/Include/code.h index 6edb054..1c8fbb3 100644 --- a/Include/code.h +++ b/Include/code.h @@ -39,12 +39,7 @@ typedef struct { call frame it setup. */ #define CO_NOFREE 0x0040 -/* XXX Temporary hack. Until generators are a permanent part of the - language, we need a way for a code object to record that generators - were *possible* when it was compiled. This is so code dynamically - compiled *by* a code object knows whether to allow yield stmts. In - effect, this passes on the "from __future__ import generators" state - in effect when the code block was compiled. */ + #define CO_GENERATOR_ALLOWED 0x1000 /* no longer used in an essential way */ #define CO_FUTURE_DIVISION 0x2000 |