[Python-Dev] Lockstep iteration - eureka!

Greg Ewing greg@cosc.canterbury.ac.nz
Wed, 09 Aug 2000 17:27:24 +1200 (NZST)


I think I've actually found a syntax for lockstep
iteration that looks reasonable (or at least not
completely unreasonable) and is backward compatible:

   for (x in a, y in b):
      ...

Not sure what the implications are for the parser
yet.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+