homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients arbyter, ezio.melotti, mrabarnett, pitrou, serhiy.storchaka
Date 2016年04月16日.17:41:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1460828493.99.0.935073707321.issue26784@psf.upfronthosting.co.za>
In-reply-to
Content
First, in the context of Python a crash means a core dump or an analogue on Windows. In this case the code just works not as you expected.
The short answer: s should be a unicode.
In your code "ä" is encoded as 8-bit string '\xc3\xa4'. When matched, every bytes is independently expanded to Unicode range. The first byte becomes u'\xc3' = u'Ã', the second byte becomes u'¤', non-alphanumeric. '[\s\w]*' doesn't match u'ä'.
"ü" is encoded as 8-bit string '\xc3\xbc'. The second byte becomes u'1⁄4', numeric. '[\s\w]*' matches u'Ã1⁄4'.
History
Date User Action Args
2016年04月16日 17:41:34serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, ezio.melotti, mrabarnett, arbyter
2016年04月16日 17:41:33serhiy.storchakasetmessageid: <1460828493.99.0.935073707321.issue26784@psf.upfronthosting.co.za>
2016年04月16日 17:41:33serhiy.storchakalinkissue26784 messages
2016年04月16日 17:41:33serhiy.storchakacreate

AltStyle によって変換されたページ (->オリジナル) /