openbabel / documentation

Sphinx-based documentation for the Open Babel project
9 stars 14 forks source link

g.next should be next(g) for python 3.x #17

Open pschmidtke opened 3 years ago

pschmidtke commented 3 years ago

Hey, just wanted to point out that the documentation for pybel isn't up to date for newer python versions (tried with python 3.8.

https://github.com/openbabel/documentation/blob/master/UseTheLibrary/Python_Pybel.rst for instance, states to use read_file().next() to access the molecule from the generator object. This should be: next(read_file())

cclauss commented 3 years ago

Also see #20 for other Python 3 issues.