2011/6/13 Steven D'Aprano <st...@pearwood.info> > Okay fine, so "1024" stored as a number only requires 10 bits (binary >>> digits) to store, >>> >> >> Actually, 11. :-) >> > > > I see your smiley, but actually more than that.
OK, this was the math, I just told that 10 bits were not enough for 2^10. > > And if you're using Python, where everything is an object, it will actually > be fourteen bytes, or 112 bits: > Where is the structure of this object (or Python objects in general) documented? Suppose, I would like to turn an object into a bytearray to study its anatomy. But the converter wants to have an encoding as parameter. How can I do that? Péter
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor