mrmechko / pytrips

GNU General Public License v2.0
6 stars 2 forks source link

ontology iterator doesn't work #27

Open mrmechko opened 5 years ago

mrmechko commented 5 years ago
>>> ont.items()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'Trips' object has no attribute 'items'
mrmechko commented 5 years ago

[x for x in ont.__iter__()] does work. Apparently I return an iterator but that's not how __iter__() is supposed to work?