pythonizer icon indicating copy to clipboard operation
pythonizer copied to clipboard

python keywords should be escaped

Open snoopyjc opened this issue 3 years ago • 1 comments

If the perl variables happen to match python keywords, they should be escaped using a trailing '_'. Here are the ones that need to be escaped: False None True and as assert async await break class continue def del elif else except finally for from global if import in is lambda nonlocal not or pass raise try while with yield.

snoopyjc avatar Nov 15 '21 02:11 snoopyjc

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

snoopyjc avatar Feb 07 '22 16:02 snoopyjc