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

support for standard library sum() #6672

Closed
gemerden opened this issue Jan 30, 2021 · 1 comment
Closed

support for standard library sum() #6672

gemerden opened this issue Jan 30, 2021 · 1 comment

Comments

@gemerden
Copy link

gemerden commented Jan 30, 2021


Not sure if i am missing something, but it seems the sum(iterable) function is not supported (cannot find it in the supported list). That seems odd. Any chance of adding it?

I get the error:

Untyped global name 'sum': Cannot determine Numba type of <class 'builtin_function_or_method'>

the code is:

cost -= late_cost * sum([s for s in spares if s < 0])

(all floats)

Feature request

@stuartarchibald
Copy link
Contributor

Thanks for opening this feature request. As this is a duplicate of #5088 I'm going to close it with view of keeping the number of open issues in the issue tracker to a minimum. I suggest commenting on and/or subscribing to #5088 to check for progress. Thanks again!

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

No branches or pull requests

2 participants