1. Joe Amenta
  2. lib3to2
  3. Issues
Issue #27 new

next() w/ generator-comprehensions inside is not enclosed in parenthesis on refactoring

Anonymous created an issue

E.g this works fine:

{{{ -next([a for a in range(5)]) -next((a for a in range(5))) +[a for a in xrange(5)].next() +(a for a in xrange(5)).next() }}}

But it goes wrong with some syntactic sugar:

{{{ -next(a for a in range(5)) +a for a in xrange(5).next() }}}

Comments (0)

  1. Log in to comment