Sep-18-2016, 08:36 PM
(Sep-18-2016, 08:21 PM)ichabod801 Wrote: Why not just return the appropriate generator:
def generator(self): if self.uc: return self.ucGenerator() else: return self.lcGenerator()Then you're not generating over a generator, you're just providing the correct generator to the original iteration.
** Slaps forehead ** Doh... In my "factory" method I was returning self.ucGenerator and not self.ucGenerator(). These parens make a huge difference...
ichabod801.virtual_beers+=1
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Your one-stop place for all your GIMP needs: gimp-forum.net