QuantStack / py2vega

BSD 3-Clause "New" or "Revised" License
9 stars 4 forks source link

Assignment support #8

Closed martinRenou closed 5 years ago

martinRenou commented 5 years ago

Assignments could be potentially supported.

e.g.:

def foo(value):
    a = 36
    return a if value < 4 else 32

Could be transpiled to: "value < 4 ? 36 : 32"