New submission from py.user:
>>> help(all)
"
all(...)
all(iterable) -> bool
Return True if bool(x) is True for all values x in the iterable.
"
>>> all([])
True
>>> bool()
False
>>>
----------
assignee: docs@python
components: Documentation
messages: 181873
nosy: docs@python, py.user
priority: normal
severity: normal
status: open
title: In all.__doc__ and any.__doc__ need to clarify the behaviour with an
empty iterable like in documentation
type: enhancement
versions: Python 3.3
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue17178>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com