On Wed, Aug 26, 2015 at 12:59 AM, Jean-Michel Pichavant <[email protected]> wrote: > To add to Joel's answer, the right side can be *any* sequence, and is not > restricted to lists or tuples. > > a, b, c = (x for x in range(3)) # a generator for instance
FWIW, a generator is not a sequence; this works because the right side can be any *iterable*, even more general than sequences. ChrisA -- https://mail.python.org/mailman/listinfo/python-list
