very rare python expression

甜瓜 littlesweetmelon at gmail.com
Tue Aug 12 05:21:34 EDT 2008


Oh, thank you very much. I did know that python can parse number '528'
and keyword 'or' without separator.

2008/8/12 Paul Rubin <"http://phr.cx"@nospam.invalid>:
> "ðÏ" <littlesweetmelon at gmail.com> writes:
>> I saw a strange python code in pygame project. What does "while
>> not(x&528or x in l):" mean? Below code works in python2.5, so "x&528"
>> is not HTML strings.
>
> It parses as "x & 528 or x in l".  Looks like it came from
>
>  http://www.pygame.org/project/833/
>
> and is an attempt to squash the program to as few bytes as possible.
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list