Re: convert n-byte string into integer

2010-04-28 Thread Maligree
On Apr 28, 11:03 pm, MRAB wrote: > Maligree wrote: > > Hello there. > > > Since this is one of those problems that may have some painfully > > simple solution that will make me feel like a fool, I'll start of with > > this: it's _very_ late (.. yeah, it's not). > > > To the point. > > > Data retur

Re: convert n-byte string into integer

2010-04-28 Thread MRAB
Maligree wrote: Hello there. Since this is one of those problems that may have some painfully simple solution that will make me feel like a fool, I'll start of with this: it's _very_ late (.. yeah, it's not). To the point. Data returned by socket.recvfrom is a string. Obviously one that most o

convert n-byte string into integer

2010-04-28 Thread Maligree
Hello there. Since this is one of those problems that may have some painfully simple solution that will make me feel like a fool, I'll start of with this: it's _very_ late (.. yeah, it's not). To the point. Data returned by socket.recvfrom is a string. Obviously one that most of the time will co