Message12518

Author jeff.allen
Recipients jeff.allen, pekka.klarck
Date 2019-05-14.06:08:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1557814087.78.0.945744667214.issue2772@roundup.psfhosted.org>
In-reply-to
Content
I'm happy to report that this works in the development tip, thanks to: https://hg.python.org/jython/rev/a1f68d091a1c .

Jython 2.7.2a1+ (default:a1ae652df5e3+, May 12 2019, 09:17:21)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_80
Type "help", "copyright", "credits" or "license" for more information.
>>> for ordinal in '0020 00A0 1680 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 200A 202F 205F 3000'.split():
...     char = unichr(int(ordinal, 16))
...     if not char.isspace():
...         print '%s is not space' % ordinal
...
>>> u'\xa0...\u1680'.strip()
u'...'
>>> u'.\xa0.'.split()
[u'.', u'.']
>>> import re
>>> re.split(r'\s+', u'.\xa0.', flags=re.UNICODE)
[u'.', u'.']
History
Date User Action Args
2019-05-14 06:08:07jeff.allensetmessageid: <1557814087.78.0.945744667214.issue2772@roundup.psfhosted.org>
2019-05-14 06:08:07jeff.allensetrecipients: + jeff.allen, pekka.klarck
2019-05-14 06:08:07jeff.allenlinkissue2772 messages
2019-05-14 06:08:07jeff.allencreate