mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Generators have been permanent for a while. This comment is no longer applicable.
This commit is contained in:
parent
f415d5f830
commit
0090a4c10d
1 changed files with 1 additions and 6 deletions
|
@ -39,12 +39,7 @@ typedef struct {
|
||||||
call frame it setup.
|
call frame it setup.
|
||||||
*/
|
*/
|
||||||
#define CO_NOFREE 0x0040
|
#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_GENERATOR_ALLOWED 0x1000 /* no longer used in an essential way */
|
||||||
#define CO_FUTURE_DIVISION 0x2000
|
#define CO_FUTURE_DIVISION 0x2000
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue