SyntaxFix
Write A Post
Hire A Developer
Questions
If your code must run under Python2 and Python3, use the 2to3 six library like this:
import six six.next(g) # on PY2K: 'g.next()' and onPY3K: 'next(g)'