xor on strings

Joshua Muskovitz joshm at taconic.net
Mon Feb 11 01:36:39 EST 2002


> >>> colors = (56, 156, 12)
> >>> print '&H%02x%02x%02x' % colors
> &H389c0c

This tripped me up, too -- I was about to post the same thing, when I
realized that they were looking for a BGR string, not an RGB one.  They
wanted &H0c9c38.

-- j

--
# Joshua Muskovitz
# joshm at taconic.net
def lyyrs(sig): return '-'.join(sig.split()+["ly y'rs"])
lyyrs('Hire me!  I need the work!')




-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----



More information about the Python-list mailing list