Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'bytes.': 0.09; 'character,': 0.09; 'latter': 0.09; 'oh,': 0.09; 'received:151': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'thread': 0.14; 'emanuele': 0.16; 'otoh,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'str)': 0.16; 'tuple': 0.16; 'units.': 0.16; 'usable': 0.16; 'wow,': 0.16; ':-)': 0.16; 'bit': 0.19; 'trying': 0.19; 'seems': 0.21; '>>>': 0.22; 'header:User-Agent:1': 0.23; 'byte': 0.24; 'bytes': 0.24; 'compare': 0.26; 'header:X-Complaints-To:1': 0.27; 'nature': 0.30; "i'm": 0.30; '>>>>': 0.31; 'factor': 0.31; 'writes:': 0.31; 'know.': 0.32; 'languages': 0.32; 'stuff': 0.32; 'definition': 0.35; 'really': 0.36; 'science,': 0.36; 'two': 0.37; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'received:org': 0.40; 'che': 0.60; 'matter': 0.61; 'email addr:gmail.com': 0.63; 'more': 0.64; 'skip:\xe2 10': 0.65; 'containing': 0.69; '8bit%:100': 0.72; 'eight': 0.74; 'characters,': 0.84; 'quando': 0.84; 'str.': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Lele Gaifax Subject: Re: .split() Qeustion Date: Thu, 15 Aug 2013 16:38:07 +0200 Organization: Nautilus Entertainments References: <94f8428f-50b9-4ccd-95a0-6eeafda0fe18@googlegroups.com> <1376499950.3355.9802231.6A03F40D@webmail.messagingengine.com> <98e36bd1-1115-4f1d-b535-171f47408a62@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: 151.62.159.53 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:VcQC9nojFNtuakz4QmCEIfh7oXU= X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 52 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1376577491 news.xs4all.nl 15996 [2001:888:2000:d::a6]:34559 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:52551 wxjmfauth@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. lele@metapensiero.it | -- Fortunato Depero, 1929.