pythonizer icon indicating copy to clipboard operation
pythonizer copied to clipboard

tr with d flag generates bad code if there is a replacement string

Open snoopyjc opened this issue 3 years ago • 1 comments

tr with d flag generates bad code if there is a replacement string. It only generates correct code if the replacement string is empty. For example:

tr/ac/b/d;

should map a->b and delete all 'c' characters.

snoopyjc avatar Feb 22 '22 16:02 snoopyjc

Fixed in my v0.956 https://github.com/snoopyjc/pythonizer/

snoopyjc avatar Mar 31 '22 22:03 snoopyjc