[Python-projects] pylint: false postive on "next" member of iterator
Sylvain Thénault
sylvain.thenault at logilab.fr
Fri Mar 27 09:58:46 CET 2009
Le Thursday 26 March 2009 19:24:37 Huurne, Maarten ter, vous avez écrit :
> pylint does not seem to know that an iterator has a member called "next":
> ===
> def count():
> n = 0
> while True:
> yield n
> n += 1
>
> i = count()
> print i.next()
> print i.next()
> print i.next()
> ===
https://www.logilab.org/ticket/8774
--
Sylvain Thénault LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
Python et calcul scientifique: http://www.logilab.fr/science
More information about the Python-Projects
mailing list