Package sanskrit

Class Ast.GeneratorExp

Enclosing class:
Ast

public static final class Ast.GeneratorExp extends Ast.CompExpr
(elt for ... in ... if ...). The subset has no lazy generators: it is evaluated at once, like a list comprehension, and gives an iterator over the result.
  • Field Details

  • Method Details

    • type

      public String type()
      Description copied from class: Node
      The name of the node in CPython's ast module ("Name", "BinOp"...).
      Specified by:
      type in class Node