gt; if isinstance(item, list):
> stack.append((enumerate(item), item))
> break
> yield index, seq[index], seq
> else:
> stack.pop()
It's going to take me a while to figure out exactly what that does but i
"Devan L" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> This will just do_something(object) to anything that is not an
> iterable. Only use it if all of your nested structures are of the same
> depth.
Cool! I'll try it.
--
Donald Newcomb
DRNe
g for a way to say:
listb = float(lista)
However, the way I've started jamming everything into lists and
dictionaries, I'm sure I'll be needing to do other in-place conversions
similar to this in the future.
--
Donald Newcomb
DRNewcomb (at) attglobal (dot) net
--
http://mail.python.org/mailman/listinfo/python-list