signed vs unsigned int
johnty
johntywang at gmail.com
Wed Jun 2 02:43:33 EDT 2010
More information about the Python-list mailing list
Wed Jun 2 02:43:33 EDT 2010
- Previous message (by thread): plac, the easiest command line arguments parser in the world
- Next message (by thread): signed vs unsigned int
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
i'm reading bytes from a serial port, and storing it into an array. each byte represents a signed 8-bit int. currently, the code i'm looking at converts them to an unsigned int by doing ord(array[i]). however, what i'd like is to get the _signed_ integer value. whats the easiest way to do this? thanks in advance. johnty
- Previous message (by thread): plac, the easiest command line arguments parser in the world
- Next message (by thread): signed vs unsigned int
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list