At 07:55 PM 12/8/2007 -0500, Manuel Alejandro Cerón Estrada wrote: >2007/12/8, Greg Ewing <[EMAIL PROTECTED]>: > > I would put it the other way around -- the problem > > that 'yield break' is meant to solve is already solved > > by 'return'. So there's no need for change. > >I have been re-thinking the problem and this is true. The only >exception would be empty generators, but they are rare.
Note that: def g(): return yield Is a valid empty generator. :) _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com