How to get an integer from a sequence of bytes

Chris Angelico rosuav at gmail.com
Tue Jun 4 17:49:55 EDT 2013


On Wed, Jun 5, 2013 at 5:51 AM, Joshua Landau
<joshua.landau.ws at gmail.com> wrote:
> On 4 June 2013 14:39, Grant Edwards <invalid at invalid.invalid> wrote:
>> On 2013-06-03, Dan Stromberg <drsalists at gmail.com> wrote:
>>> Today though, it would be difficult to sell a conventional (Von Neumann)
>>> computer that didn't have 8 bit bytes.
>>
>> There are tons (as in millions of units per month) of CPUs still being
>> sold in the DSP market with 16, 20, 24, and 32 bit "bytes".  (When
>> writing C on a TMS320Cxx CPU sizeof (char) == sizeof (int) == sizeof
>> (long) == sizeof (float) == sizeof (double) == 1.  They all contain 32
>> bits.
> )
>
> *) for the bracket not in the reply
>
> Sorry.

So... can we cite http://xkcd.com/859/ in two threads at once, or does
that create twice as much tension?

Once an XKCD is un-cited, will it be garbage collected promptly, or do
they contain refloops?

ChrisA



More information about the Python-list mailing list