underscore.py icon indicating copy to clipboard operation
underscore.py copied to clipboard

OrderedDict enumeration broken in Python 3.4

Open jklmli opened this issue 10 years ago • 0 comments

  File "test.py", line 27, in action
    _(chapters.items()).forEach(lambda item, *others:
  File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/underscore.py-0.1.6-py3.4.egg/underscore/underscore.py", line 174, in each
TypeError: 'ItemsView' object is not subscriptable

chapters is an OrderedDict.

jklmli avatar Jun 01 '14 05:06 jklmli