"David Stanek" <[EMAIL PROTECTED]> writes:

>     >>> for x, y in d, t:
>     ...     print x, y
>     ...
>     Traceback (most recent call last):
>       File "<stdin>", line 1, in ?
>     ValueError: unpack list of wrong size
>     >>> for x in d, t:
>     ...     print x   
>     ...
>     [{}, {}, {}]
>     [0, 0, 0]
>     >>>
> What you can do instead is something like:
>     py:for="dataset, time in datasets, times" # untested but should work

Should it?  It didn't work in your code above...

> or you can always loop through range(len(datasets)) and access everything by 
> index.

Or use zip ;-) 

-- 
Jorge Godoy      <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to