Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!feeds.phibee-telecom.net!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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'from:addr:yahoo.co.uk': 0.05; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; ':-)': 0.14; '-tkc': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.16; 'language': 0.19; '>>>': 0.20; 'bug?': 0.22; 'lawrence': 0.22; 'header:In-Reply-To:1': 0.24; 'tim': 0.24; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'linux': 0.26; "doesn't": 0.28; 'chase': 0.29; 'language.': 0.32; 'to:addr:python-list': 0.35; 'subject:: ': 0.37; 'received:org': 0.38; 'skip:p 20': 0.38; 'space': 0.38; 'to:addr:python.org': 0.39; 'seem': 0.39; 'mark': 0.40; 'more': 0.62; 'our': 0.64; 'respect': 0.65; 'charset:windows-1252': 0.65; 'pythonistas,': 0.84; '2014,': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Python NBSP DWIM Date: Wed, 10 Jun 2015 15:17:21 +0100 References: <20150610082812.2ce887c3@bigbox.christie.dr> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-78-146-1-157.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <20150610082812.2ce887c3@bigbox.christie.dr> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1433945858 news.xs4all.nl 2832 [2001:888:2000:d::a6]:54845 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:92400 On 10/06/2015 14:28, Tim Chase wrote: > str.split() doesn't seem to respect non-breaking space: > > Python 3.4.2 (default, Oct 8 2014, 10:45:20) > [GCC 4.9.1] on linux > Type "help", "copyright", "credits" or "license" for more information. > >>> print(repr("hello\N{NO-BREAK SPACE}world".split())) > ['hello', 'world'] > > What's the purpose of a non-breaking space if it's treated like a > space for breaking/splitting purposes? :-) > > Is this a bug? > > -tkc > IMNSHO yes. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence