This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xiang.zhang
Recipients docs@python, xiang.zhang
Date 2016-05-11.16:45:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1462985155.22.0.859825042381.issue27000@psf.upfronthosting.co.za>
In-reply-to
Content
I think filter's doc can be improved[1]:

1. It doesn't mention ``bool``. ``bool`` is treated the same way as ``None``. It is not called. But this is not mentioned.
2. 'the identity function is assumed' is confusing, at least for me. It looks like when ``None`` is passed, *function* is set to a default func, lambda x: x. Then *function* is called and we identify the return value True or False. But this is not the truth. There is no default value and no function is applied. I think this should be deleted.

[1] https://docs.python.org/3/library/functions.html#filter
History
Date User Action Args
2016-05-11 16:45:55xiang.zhangsetrecipients: + xiang.zhang, docs@python
2016-05-11 16:45:55xiang.zhangsetmessageid: <1462985155.22.0.859825042381.issue27000@psf.upfronthosting.co.za>
2016-05-11 16:45:55xiang.zhanglinkissue27000 messages
2016-05-11 16:45:55xiang.zhangcreate