Details
-
Bug
-
Status: Resolved
-
Not specified
-
Resolution: Fixed
-
None
-
None
-
Ubuntu
Description
When passing arguments to embedded functions, there is a conflict between argument names and unrelated attributes with the same name but different capitalization.
For example, the following runs successfully:
IMPORT Python3 AS Python;
anyinput := 5;
UNSIGNED testFunc(UNSIGNED anyinput) := EMBED(Python)
return anyinput + 1
ENDEMBED;
result := testFunc(1)
OUTPUT(result);
But if I change the second line from:
anyinput := 5;
to:
anyInput := 5;
That is, change the capitaliztion of the attribute by 1 or more characters, the job fails with the following error:
Error: 0: pyembed name 'anyinput' is not defined
This attribute should be independent of the argument name for the embed, but there is some errant interaction when the capitalization is changed.