metapensiero / metapensiero.pj

Javascript for refined palates: a Python 3 to ES6 Javascript translator
Other
901 stars 73 forks source link

fix: Allow ast.Subscript as indices #81

Closed TEParsons closed 9 months ago

TEParsons commented 9 months ago

e.g. a[b[0]] previously errored as b[0] is considered a node of the wrong type (ast.Subscript)

I'm not overly familiar with the inner workings of metapensiero having mostly worked on a "chickens go in pies come out" basis via PsychoPy, so please do let me know if there's unforseen consequences to this change!

Also fixes #78

azazel75 commented 9 months ago

Thanks @TEParsons and sorry for the delay, i don't use this pj so much anymore

TEParsons commented 4 months ago

Hi @azazel75 , thanks for pulling this in! Do you have a date set for the next release of javascripthon? We use it in PsychoPy and the bug which this fixes is still biting users, would be great to be able to just update the version in our build to 0.13 and solve it.

azazel75 commented 4 months ago

Hi Todd, I'll try to release a new version in the next days, with just this added, cheers