(why) inconsistent yield/return syntax?

Mark McEahern marklists at mceahern.com
Mon Feb 10 15:30:49 EST 2003


> Subject: (why) inconsistent yield/return syntax?

yield is for generators.

To use it prior to 2.3 (?), add:

  from __future__ import generators

Read up on generators.  Google is your friend.

Cheers,

// m
-






More information about the Python-list mailing list