mirror of
https://github.com/python/cpython.git
synced 2024-12-01 11:15:56 +01:00
fe2127d3cb
that 'yield' is a keyword. This doesn't help test_generators at all! I don't know why not. These things do work now (and didn't before this patch): 1. "from __future__ import generators" now works in a native shell. 2. Similarly "python -i xxx.py" now has generators enabled in the shell if xxx.py had them enabled. 3. This program (which was my doctest proxy) works fine: from __future__ import generators source = """\ def f(): yield 1 """ exec compile(source, "", "single") in globals() print type(f()) |
||
---|---|---|
.. | ||
abstract.h | ||
bitset.h | ||
bufferobject.h | ||
cellobject.h | ||
ceval.h | ||
classobject.h | ||
cobject.h | ||
codecs.h | ||
compile.h | ||
complexobject.h | ||
cStringIO.h | ||
dictobject.h | ||
errcode.h | ||
eval.h | ||
fileobject.h | ||
floatobject.h | ||
frameobject.h | ||
funcobject.h | ||
graminit.h | ||
grammar.h | ||
import.h | ||
intobject.h | ||
intrcheck.h | ||
iterobject.h | ||
listobject.h | ||
longintrepr.h | ||
longobject.h | ||
marshal.h | ||
metagrammar.h | ||
methodobject.h | ||
modsupport.h | ||
moduleobject.h | ||
node.h | ||
object.h | ||
objimpl.h | ||
opcode.h | ||
osdefs.h | ||
parsetok.h | ||
patchlevel.h | ||
pgenheaders.h | ||
py_curses.h | ||
pydebug.h | ||
pyerrors.h | ||
pyfpe.h | ||
pygetopt.h | ||
pymem.h | ||
pyport.h | ||
pystate.h | ||
Python.h | ||
pythonrun.h | ||
pythread.h | ||
rangeobject.h | ||
sliceobject.h | ||
stringobject.h | ||
structmember.h | ||
symtable.h | ||
sysmodule.h | ||
token.h | ||
traceback.h | ||
tupleobject.h | ||
ucnhash.h | ||
unicodeobject.h |