pythonizer icon indicating copy to clipboard operation
pythonizer copied to clipboard

Dereferencing an array or hash ref generates bad python code

Open snoopyjc opened this issue 3 years ago • 1 comments

Dereferencing an array or hash ref generates bad python code. For example:

@three = @{$options{three}};

Generates:

three=@[options['three']]

instead the dereference should be ignored and this code should be generated:

three=options['three']

snoopyjc avatar Nov 19 '21 05:11 snoopyjc

Fixed in https://github.com/snoopyjc/pythonizer

snoopyjc avatar Feb 07 '22 16:02 snoopyjc