[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Include parsetok.h,2.15,2.16 pythonrun.h,2.42,2.43
Thomas Wouters
thomas@xs4all.net
Mon, 16 Jul 2001 08:57:29 +0200
On Sun, Jul 15, 2001 at 10:37:26PM -0700, Tim Peters wrote:
> Modified Files:
> parsetok.h pythonrun.h
> Log Message:
> Ugly. A pile of new xxxFlags() functions, to communicate to the parser
> 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):
What's the problem with this, anyway ? Why would "from __future__ import
generators" or special flags be necessary to enable the existance of
generators ? I'd have thought it's just a parser directive (okay, so that's
tricky to implement) but to code that doesn't use 'yield' a generator is
just another iterator, right ?
--
Thomas Wouters <thomas@xs4all.net>
Hi! I'm a .signature virus! copy me into your .signature file to help me spread!