Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed1.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'string.': 0.05; 'below)': 0.09; 'compact': 0.09; 'pep': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'strings.': 0.09; 'jan': 0.12; '2.7': 0.14; 'posted': 0.15; '4:59': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'said.': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'examples': 0.20; 'not,': 0.20; 'memory': 0.22; 'example': 0.22; 'coding': 0.22; 'saying': 0.22; 'header:User-Agent:1': 0.23; 'bytes': 0.24; 'choices': 0.24; 'mathematical': 0.24; 'unicode': 0.24; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'am,': 0.29; 'thus': 0.29; 'document.': 0.30; 'code': 0.31; "skip:' 10": 0.31; '3.2': 0.31; '>>>>': 0.31; 'claiming': 0.31; 'basic': 0.35; 'really': 0.36; 'scheme': 0.36; 'should': 0.36; 'so,': 0.37; 'two': 0.37; 'list.': 0.37; 'saves': 0.38; 'to:addr :python-list': 0.38; 'fact': 0.38; 'little': 0.38; '(from': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'read': 0.60; 'subject:"': 0.60; 'most': 0.60; 'received:173': 0.61; 'email addr:gmail.com': 0.63; 'show': 0.63; 'kind': 0.63; 'more': 0.64; 'different': 0.65; '10000': 0.68; 'acts': 0.74; 'describes': 0.84; 'received:fios.verizon.net': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Blog "about python 3" Date: Wed, 08 Jan 2014 14:26:55 -0500 References: <52c6415c$0$29972$c3e8da3$5496439d@news.astraweb.com> <52C6AD00.5050000@chamonix.reportlab.co.uk> <3519f85e-0909-4f5a-9a6e-09b6fd4c312d@googlegroups.com> <2fbf4f89-caaa-4fab-8d7e-ff7ef84029a2@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Gmane-NNTP-Posting-Host: pool-173-75-254-207.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: 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: 45 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1389209238 news.xs4all.nl 2887 [2001:888:2000:d::a6]:45640 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:63510 On 1/8/2014 4:59 AM, wxjmfauth@gmail.com wrote: [responding to me] > The FSR acts more as an coding scheme selector That is what PEP 393 describes and what I and many others have said. The = FSR saves memory by selecting from three choices the most compact coding = scheme for each string. I ask again, have you read PEP 393? If you are going to critique the=20 FSR, you should read its basic document. > than as a code point optimizer. I do not know what you mean by 'code point optimizer'. > Claiming that it saves memory is some kind of illusion; Do you really think that the mathematical fact "10026 < 20040 < 40044"=20 (from your example below) is some kind of illusion? If so, please take=20 your claim to a metaphysics list. If not, please stop trolling. > a little bit as saying "Py2.7 uses "relatively" less memory than > Py3.2 (UCS-2)". This is inane as 2.7 and 3.2 both use the same two coding schemes.=20 Saying '1 < 2' is different from saying '2 < 2'. On 3.3+ >>>> sys.getsizeof('a' * 10000 + 'z') > 10026 >>>> sys.getsizeof('a' * 10000 + '=E2=82=AC') > 20040 >>>> sys.getsizeof('a' * 10000 + '\U00010000') > 40044 3.2- wide (UCS-4) builds use about 40050 bytes for all three unicode=20 strings. One again, you have posted examples that show how FSR saves=20 memory, thus negating your denial of the saving. --=20 Terry Jan Reedy