Skip to content

Commit a38fe55

Browse files
author
neal.norwitz
committed
Generators have been permanent for a while. This comment is no longer applicable.
git-svn-id: http://svn.python.org/projects/python/trunk@42501 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent c7a2649 commit a38fe55

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

Include/code.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,7 @@ typedef struct {
3939
call frame it setup.
4040
*/
4141
#define CO_NOFREE 0x0040
42-
/* XXX Temporary hack. Until generators are a permanent part of the
43-
language, we need a way for a code object to record that generators
44-
were *possible* when it was compiled. This is so code dynamically
45-
compiled *by* a code object knows whether to allow yield stmts. In
46-
effect, this passes on the "from __future__ import generators" state
47-
in effect when the code block was compiled. */
42+
4843
#define CO_GENERATOR_ALLOWED 0x1000 /* no longer used in an essential way */
4944
#define CO_FUTURE_DIVISION 0x2000
5045

0 commit comments

Comments
 (0)