You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of the counter you could use zip. here's copy-paste from an ipython prompt for an example.
In [9]: for item in zip([1,2,3],['a','b','c']):
...: print item
...:
(1, 'a')
(2, 'b')
(3, 'c')
including this example since your test has a 3 item tuple but the tests/test.json has 4 elements.
In [10]: for item in zip([1,2,3],['a','b','c','d']):
print item
....:
(1, 'a')
(2, 'b')
(3, 'c')
btw, asked around and was told that you could use itertools.izip if you want an iterable instead of a list.
The text was updated successfully, but these errors were encountered:
If you like, I'll fix this, but there are some other things that need fixing in Citation before I get to this, and I wanted to leave a helpful comment here while I get on to the other stuff.
Instead of the counter you could use zip. here's copy-paste from an ipython prompt for an example.
In [9]: for item in zip([1,2,3],['a','b','c']):
...: print item
...:
(1, 'a')
(2, 'b')
(3, 'c')
including this example since your test has a 3 item tuple but the tests/test.json has 4 elements.
In [10]: for item in zip([1,2,3],['a','b','c','d']):
print item
....:
(1, 'a')
(2, 'b')
(3, 'c')
btw, asked around and was told that you could use itertools.izip if you want an iterable instead of a list.
The text was updated successfully, but these errors were encountered: