Can I search a list for a range of values?
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Sat Oct 15 07:53:16 EDT 2011
Chris Angelico wrote:
> Yeah, it's legal because you can nest fors and ifs in a list comp.
> Stylistic difference, I used "if" instead of "and" because there's no
> way that it could be a bitwise and.
If you're using Python, there's no way that it could be a bitwise and.
> (It's a cross-language safety net that I sometimes use.)
I'm not familiar with a language that uses Python syntax but "and" is a
bitwise and. Which language is that?
--
Steven
More information about the Python-list
mailing list