wxjmfa...@gmail.com writes: > As a stupid scientist, I have the habbit to compare > things of the same nature with the same units. > > This *string* containing one *character* > >>>> sys.getsizeof('a') > 26 > > consumes 26 *bytes*.
I'm not an expert in stupid science, and I fail to see the "common" nature of the stuff you are comparing. Strings are not characters, and neither the latter are bytes. Anyway, trying to apply the same stupid science, I notice a much more amazing fact: >>> sys.getsizeof(True) 24 Does Python really needs twentyfour bytes to store a *single* bit of information?? Wow, since by definition a byte contains eight bits, there's a factor of 192... what a shame! :-) > ————— > > Python seems to consider os.linesep as a > str. > >>>> isinstance(os.linesep, str) > True Yes, I bet in stupid languages that would be either a single character, or a tuple of two or more characters, much more usable and compact. > ————— > > PS A "mole" is not a number. Oh, nice to know. And OOC, what is a "mole" in your stupid science? OTOH, WTF does that matter in current thread and with Python in general? ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. l...@metapensiero.it | -- Fortunato Depero, 1929. -- http://mail.python.org/mailman/listinfo/python-list