Help: C char bits operations to python converting

Joshua Muskovitz josh at open.com
Wed Sep 27 15:53:06 EDT 2000


def SignExtend(char):
    if char & 0x80:
        char = char ^ 0xffffff00
    return char

yes?




-----= 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