takemaru / graphillion

Fast, lightweight graphset operation library
Other
466 stars 40 forks source link

Generators Failing #36

Closed seanlaw closed 5 years ago

seanlaw commented 5 years ago

According to PEP479, you'll have to update your generators for compatibility with the latest versions of Python 3.7. Otherwise, users will get an error like:

Traceback (most recent call last):
  File "./dxz.py", line 116, in <module>
    for sol in dxz.solutions:
  File "./dxz.py", line 45, in solutions
    for x in iter(self.zdd):
  File "/home/miniconda3/lib/python3.7/site-packages/graphillion/graphset.py", line 653, in __iter__
    for g in self._ss.__iter__():
RuntimeError: generator raised StopIteration
takemaru commented 5 years ago

Thank you for letting me know! Unfortunately, I can't make time to fix the issue soon, so patches are very welcome if possible.

takemaru commented 5 years ago

I've merged it and updated Graphillion.