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

[LISTS] Add C support for len function #1874

Open
EmilyBourne opened this issue May 16, 2024 · 0 comments · May be fixed by #1908
Open

[LISTS] Add C support for len function #1874

EmilyBourne opened this issue May 16, 2024 · 0 comments · May be fixed by #1908
Assignees
Labels
Containers tuples/lists/sets/maps enhancement Lists Variable-length homogeneous lists

Comments

@EmilyBourne
Copy link
Member

Describe the feature

In Python the len function can be called on many functions however the implementation of this function is different in different languages. Support should be added to test the length of a list in C (and Python if it does not work out of the box).

Test Code

Provide code which does not currently work but which should do when this issue is fixed:

def f():
    a = [1,2,3]
    b = len(a)
    return b

Proposed Solution

This feature should be implemented using the functionalities provided by STC

@EmilyBourne EmilyBourne added enhancement Lists Variable-length homogeneous lists Containers tuples/lists/sets/maps labels May 16, 2024
@Farouk-Echaref Farouk-Echaref self-assigned this May 27, 2024
@Farouk-Echaref Farouk-Echaref linked a pull request Jun 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Containers tuples/lists/sets/maps enhancement Lists Variable-length homogeneous lists
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants