"momobear" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> then how can I convert it to a int list? I read about struct and array, > I think they are not suitable, since I don't know how long will the > buffer is. I know if I write a plugins modules in C should works, but > that's really upset to tell to myself there is no way in Python. I'm not sure why you think that the array and struct modules are unsuitable: >>>import array >>>buffer = 'iidfkljkkkkhfpa3' >>>arr = array.array('h', buffer) >>> print arr array('h', [26985, 26212, 27755, 27498, 27499, 26731, 28774, 13153]) -- http://mail.python.org/mailman/listinfo/python-list