GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Add operator.is_none() · Issue #115808 · python/cpython Closed Labels type-featureA feature request or enhancementA feature request or enhancement DescriptionFeature or enhancementProposal:With floating point data, the >>> from math import isnan >>> from itertools import filterfalse >>> data = [3.3, float('nan'), 1.1, 2.2] >>> sorted(filterfalse(isnan, data)) [1.1, 2.2, 3.3] For non-float data, the >>> data = ['c', None, 'a', 'b'] >>> sorted(filterfalse(is_none, data)) ['a', 'b', 'c'] This helps fulfill a primary use case for the operator module which is to support functional programming with Has this already been discussed elsewhere?No response given Links to previous discussion of this feature:No response Linked PRsReacted by Alex Waygood, Arie Bovenberg, Erlend E. Aasland, Kirill Podoprigora and Gouvernathor Activity
MetadataMetadataAssigneesLabelstype-featureA feature request or enhancementA feature request or enhancement ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |