]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Added a simple but general backtracking generator (conjoin), and a couple
authorTim Peters <tim.peters@gmail.com>
Fri, 29 Jun 2001 02:41:16 +0000 (02:41 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 29 Jun 2001 02:41:16 +0000 (02:41 +0000)
commitbe4f0a7748433fb051f6d67bf24c77a73add6a12
tree8a8b415aef1803e38e3467d65d77bb7f7d72f371
parent7becc91fefacaffc403b0cb47178a3d817843cad
Added a simple but general backtracking generator (conjoin), and a couple
examples of use.  These poke stuff not specifically targeted before, incl.
recursive local generators relying on nested scopes, ditto but also
inside class methods and rebinding instance vars, and anonymous
partially-evaluated generators (the N-Queens solver creates a different
column-generator for each row -- AFAIK this is my invention, and it's
really pretty <wink>).  No problems, not even a new leak.
Lib/test/test_generators.py