Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #92400 > unrolled thread

Re: Python NBSP DWIM

Started byMark Lawrence <breamoreboy@yahoo.co.uk>
First post2015-06-10 15:17 +0100
Last post2015-06-10 15:17 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Python NBSP DWIM Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-06-10 15:17 +0100

#92400 — Re: Python NBSP DWIM

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2015-06-10 15:17 +0100
SubjectRe: Python NBSP DWIM
Message-ID<mailman.342.1433945858.13271.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web