Message265325
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 |
|
Date |
User |
Action |
Args |
2016-05-11 16:45:55 | xiang.zhang | set | recipients:
+ xiang.zhang, docs@python |
2016-05-11 16:45:55 | xiang.zhang | set | messageid: <1462985155.22.0.859825042381.issue27000@psf.upfronthosting.co.za> |
2016-05-11 16:45:55 | xiang.zhang | link | issue27000 messages |
2016-05-11 16:45:55 | xiang.zhang | create | |
|