Skip to content

fixmes about counters in citationTest #2

@codersquid

Description

@codersquid

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions