Skip to content

[Lang] Build subscripted tuple assign #8659

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

windwhiterain
Copy link
Contributor

Currently assigning to an subscripted list of tuples in taichi scope will results an error. For example:

a = [(0, 1)] * 3

a[1] = (0, 2) # results error

I modified build_basic_assign to support this.

I was motivated from my attempt to create custom iterable from custom data. I have to create a list of tuple like [(0, 1), (1, 3)] to fill in the ndrange.

@feisuzhu
Copy link
Contributor

feisuzhu commented May 7, 2025

/rebase

windwhiterain and others added 3 commits May 7, 2025 14:32
@taichi-gardener taichi-gardener force-pushed the build_subscripted_tuple_assgin branch from 9b55637 to 7d1caa9 Compare May 7, 2025 14:32
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

Successfully merging this pull request may close these issues.

None yet

2 participants