Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'subject:Python': 0.06; 'latter': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'stating': 0.09; 'windows,': 0.09; 'python': 0.11; 'language.': 0.14; 'posted': 0.15; '"e"': 0.16; '"python': 0.16; '09:00,': 0.16; ':o)': 0.16; 'reason.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'language': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'trying': 0.19; 'stefan': 0.19; '>>>': 0.22; 'header:User-Agent:1': 0.23; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'fixed': 0.29; '"",': 0.31; 'assert': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'file': 0.32; 'linux': 0.33; '(most': 0.33; "he's": 0.36; 'example,': 0.37; 'nov': 0.38; 'to:addr:python-list': 0.38; 'list,': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'mailing': 0.39; 'received:org': 0.40; 'email addr:gmail.com': 0.63; 'our': 0.64; 'more': 0.64; 'reads': 0.68; 'subjectcharset:utf-8': 0.72; 'jul': 0.74; 'subject::': 0.85; 'received:89': 0.85; '2013,': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: =?UTF-8?B?J1N0cmHDn2UnICgnU3RyYXNzZScpIGFuZCBQeXRob24gMg==?= Date: Sun, 12 Jan 2014 12:33:07 +0000 References: <30dfa6f1-61b2-49b8-bc65-5fd18d498c38@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: host-89-240-163-45.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; 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: 1389529998 news.xs4all.nl 2905 [2001:888:2000:d::a6]:45057 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:63764 On 12/01/2014 09:00, Stefan Behnel wrote: > Peter Otten, 12.01.2014 09:31: >> wxjmfauth@gmail.com wrote: >> >>>>>> sys.version >>> 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] >>>>>> s = 'Straße' >>>>>> assert len(s) == 6 >>>>>> assert s[5] == 'e' >>>>>> >>> >>> jmf >> >> Signifying nothing. (Macbeth) >> >> Python 2.7.2+ (default, Jul 20 2012, 22:15:08) >> [GCC 4.6.1] on linux2 >> Type "help", "copyright", "credits" or "license" for more information. >>>>> s = "Straße" >>>>> assert len(s) == 6 >> Traceback (most recent call last): >> File "", line 1, in >> AssertionError >>>>> assert s[5] == "e" >> Traceback (most recent call last): >> File "", line 1, in >> AssertionError > > The point I think he was trying to make is that Linux is better than > Windows, because the latter fails to fail on these assertions for some reason. > > Stefan :o) > > The point he's trying to make is that he also reads the pythondev mailing list, where Steven D'Aprano posted this very example, stating it is "Python 2 nonsense". Fixed in Python 3. Don't mention... :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence