very rare python expression
Edward A. Falk
falk at green.rahul.net
Tue Aug 12 14:20:59 EDT 2008
In article <7xtzdqobsy.fsf at ruckus.brouhaha.com>,
Paul Rubin <http://phr.cx@NOSPAM.invalid> wrote:
>"ðÏ" <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.
Sheesh. The 80's called; they want their floppy drives back.
Even with the whitespace restored, it's awful style.
--
-Ed Falk, falk at despams.r.us.com
http://thespamdiaries.blogspot.com/
More information about the Python-list
mailing list