Message233416
The pydoc documentation for filter reads:
filter(function or None, sequence) -> list, tuple, or string
Return those items of sequence for which function(item) is true. If
function is None, return the items that are true. If sequence is a tuple
or string, return the same type, else return a list.
It would be nicer to know (e.g. when offline and with no local access to the HTML documentation) that filter() can actually be used more generally with an iterable:
filter(function or None, **iterable**) -> list, tuple, or string
Return those items of **iterable** for which… |
|
Date |
User |
Action |
Args |
2015-01-04 13:19:32 | lebigot | set | recipients:
+ lebigot, docs@python |
2015-01-04 13:19:32 | lebigot | set | messageid: <1420377572.43.0.335658121107.issue23164@psf.upfronthosting.co.za> |
2015-01-04 13:19:32 | lebigot | link | issue23164 messages |
2015-01-04 13:19:32 | lebigot | create | |
|