sppl icon indicating copy to clipboard operation
sppl copied to clipboard

Fix sample_func in case where the token is an invalid Python variable name

Open fsaad opened this issue 4 years ago • 0 comments

Example, the following variable cannot be rewritten in sample_func

X = Variable('X[0]')
sample_func(lambda ??: ??, 100)

One solution is to handle array variables by naming them X_at_10 in the lambda.

fsaad avatar Apr 15 '20 17:04 fsaad