pythonizer
pythonizer copied to clipboard
Arrays should be interpolated in strings
Arrays should be interpolated in strings, for example:
$s = "array is @array, hash is @{[%hash]}"
sets s to exactly that string - it should include the contents of array and hash.
Generated code should be something like f"{' '.join(array)}"
, though ideally the ' '
should be the $"
value. For the hash case: f"{' '.join(functools.reduce(lambda x,y:x+y, hash.items()))}"
Fixed in https://github.com/snoopyjc/pythonizer