pythonizer icon indicating copy to clipboard operation
pythonizer copied to clipboard

The '.' operator needs to convert it's operands to strings using str() function

Open snoopyjc opened this issue 3 years ago • 1 comments

The perl '.' operator concatenates strings. In perl, variables of other types are automatically changed to strings. In python, you have to manually apply the str() function in order to do that. For example:

$message = "i is " . $i;

snoopyjc avatar Nov 13 '21 16:11 snoopyjc

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

snoopyjc avatar Feb 07 '22 16:02 snoopyjc