[Python-ideas] Break the dominance of boolean values in boolean context

Sven Marnach sven at marnach.net
Thu Sep 15 14:40:22 CEST 2011


Terry Reedy schrieb am Mi, 14. Sep 2011, um 22:52:47 -0400:
> That is what itertool is designed for. I believe
> chain(dropwhile(...), [default]) will add a default.

... unless the default is falsy.

 -- Sven



More information about the Python-ideas mailing list