Better way to negate a boolean list?
David Trémouilles
david.trem at gmail.com
Sun Feb 10 02:46:24 EST 2008
More information about the Python-list mailing list
Sun Feb 10 02:46:24 EST 2008
- Previous message (by thread): Tkinter - tk_focusNext broken for years?
- Next message (by thread): Better way to negate a boolean list?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, Is there any better (shorter) way to negate a boolean list than: >>> negated_boolean_list = [not elem for elem in boolean_list] ? I tried: >>> map(not, boolean_list) but it seems that "not" is not a function. Thanks in advance, David
- Previous message (by thread): Tkinter - tk_focusNext broken for years?
- Next message (by thread): Better way to negate a boolean list?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list