Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fsaad opened this issue Apr 15, 2020 · 0 comments
Open

Comments

@fsaad
Copy link
Collaborator

fsaad commented Apr 15, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant