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

all([]) should return false #14

Closed
raff opened this issue Aug 30, 2018 · 2 comments
Closed

all([]) should return false #14

raff opened this issue Aug 30, 2018 · 2 comments
Assignees

Comments

@raff
Copy link
Contributor

raff commented Aug 30, 2018

From python documentation at https://docs.python.org/3/library/functions.html#all
Return True if all elements of the iterable are true (or if the iterable is empty).

@corona10
Copy link
Collaborator

corona10 commented Aug 30, 2018

@raff

Hi, raff on my gpython it works well.

➜  ~ gpython
Gpython 3.4.0
>>> a = []
>>> all(a)
False
>>> all([])
False
>>>

Is there any other issue which you intended?

@raff
Copy link
Contributor Author

raff commented Aug 30, 2018

Sorry, I meant it should return True, according to python specs. See the link and the python implementations in there.

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

2 participants