About that 'yield' word

Tobiah toby at rcsreg.com
Sat Oct 4 15:35:17 EDT 2003


def maker():
         for i in range(100):
                 yield i


foo:4: Warning: 'yield' will become a reserved keyword in the future
   File "foo", line 4
     yield i
           ^
SyntaxError: invalid syntax

Python 2.2.2


???





More information about the Python-list mailing list