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

[stdlib] Add ListLiteral.__getitem__ #3835

Open
wants to merge 1 commit into
base: nightly
Choose a base branch
from

Conversation

rd4com
Copy link
Contributor

@rd4com rd4com commented Dec 4, 2024

Hello,
just a small pr to add __getitem__ to ListLiteral 👍

For example:

def main():
    x = [0, 1.0, "two"]
    print(
        x[0] == 0,
        x[1] == 1.0,
        x[2] == "two"
    )

Does it needs the @always_inline("nodebug") like Tuple ?

@rd4com rd4com requested a review from a team as a code owner December 4, 2024 19:32
@rd4com rd4com force-pushed the listliteral_getitem branch from ecc5490 to 8312f6d Compare December 4, 2024 19:38
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.

1 participant