from __future__ import generators not working in IDLE
Grace
nospam at nospam.com
Sat Jul 28 09:18:26 EDT 2001
"from __future__ import generators" does not work in IDLE which is included
in Python 2.2a1.
See the copy&pasted text from the real IDLE running:
>>> from __future__ import generators
>>>
>>> <string>:2: Warning: 'yield' will become a reserved keyword in the
future
<string>:2: Warning: 'yield' will become a reserved keyword in the future
<string>:2: Warning: 'yield' will become a reserved keyword in the future
def f():
yield 1
SyntaxError: invalid syntax
>>>
Is there any workarounds?
Thanks in advance.
Grace.
More information about the Python-list
mailing list