very rare python expression

Paul Rubin http
Tue Aug 12 04:52:13 EDT 2008


"ðÏ" <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.



More information about the Python-list mailing list