As I was working on the scripting docs, I realized that the "unique" generators could be greatly simplified by using the corresponding non-unique generators.
In the process I saw that generators don't need to raise stopIteration explicitly if control reaches the end. Indeed, generators automatically define __next__ methods, which *do* raise stopIteration. Rev 6142 comments out all "raise stopIteration" statements and simplifies the "unique" generators. All unit tests pass, which didn't happen at first ;-) There are a few places in the code that have "except stopIteration" statements in them. As I understand Python, they should be unaffected by the recent changes. But I am not completely sure, which is why I only commented-out the statements. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To post to this group, send email to leo-editor@googlegroups.com. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/groups/opt_out.