Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#17 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
55/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
python
Ambito
documentation

Direzione di ricerca

Read UseTheLibrary/Python_Pybel.rst at the linked documentation page and locate the read_file().next() example. Update that example to use the Python 3-compatible form next(read_file()), then check the surrounding documentation for the same outdated pattern. Done means the documented generator access is correct for Python 3.x.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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())

Lingua principale
Python
Stelle
10
Fork
15
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Nessun modello di pull request
  • Leggi la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openbabel/documentation

Tutte le issue di openbabel/documentation

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.