[Python-ideas] Re: itertools.compress default selectors

2021-09-14 Thread m...@dyatkovskiy.com
OK, If I might tell some story... :) Main motivation was a use case where we gather command line options, and some of them are… optional. Below is a realistic example. Namely options for LLVM Clang: >>> flags = [“-O3”, “-fomit-frame-pointer”, maybe_pgo(context)] Here “maybe_pgo” returns either

[Python-ideas] Re: itertools.compress default selectors

2021-09-14 Thread m...@dyatkovskiy.com
know if it is still has a chance to be accepted. Thanks! Stepan Dyatkovskiy. > On Sep 14, 2021, at 2:18 PM, Steven D'Aprano wrote: > > On Tue, Sep 14, 2021 at 11:31:43AM +0400, [email protected] wrote: > >> Thus I have collection of options and some of them are empty