PyneComp v6.0.75 — converted scripts now keep the right values in tuple history reads,…

Fixes

  • A script that unpacks a tuple and then reads an element’s history ([a, b] = f() followed by a[1]) could fail at runtime with “‘float’ object is not subscriptable” when compiled in strict mode or when an element shared its name with a function; it now runs
  • Two consecutive value-returning if/switch expressions (for example a string switch followed by a bool one) could share one variable, so the second one could start from an empty string instead of na; each expression now keeps its own value
  • array.from<float> and matrix.new<float> given int values now store them as floats, as TradingView does (5.0, not 5), and a matrix.new<T> without an initial value is filled with na of the right type

This website uses cookies and similar technologies. By continuing to use the site, you accept this. Details in our Privacy Policy.