Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pschmidtke opened this issue Jan 25, 2021 · 1 comment
Open

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

pschmidtke opened this issue Jan 25, 2021 · 1 comment

Comments

@pschmidtke
Copy link

pschmidtke commented Jan 25, 2021

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
Copy link

cclauss commented Aug 29, 2021

Also see #20 for other Python 3 issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants