mbdevpl / horast

Human-oriented abstract syntax tree (AST) parser/unparser for Python 3 that doesn't discard comments.
Apache License 2.0
16 stars 6 forks source link

Issues with fluent apis #4

Open mariusvniekerk opened 5 years ago

mariusvniekerk commented 5 years ago

Horast fails to parse correctly for inline comments embedded in fluent-style blocks

horast.parse("""
x = (spark_rdd
        # Increate by one
        .map(lambda x: x+1)
        # Sum it all
        .reduce(lambda x, y: x +y)
    )
""")