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.

作者 ncoghlan
收信人 Arfrever, ezio.melotti, lemburg, ncoghlan, pitrou, r.david.murray, serhiy.storchaka, vstinner
日期 2015-03-17.12:18:58
SpamBayes Score -1.0
Marked as misclassified
Message-id <1426594738.45.0.314347087639.issue18814@psf.upfronthosting.co.za>
In-reply-to
内容
I'd wondered about that with respect to rehandle_surrogatepass.

The current implementation looks like it processes *all* surrogates (even valid surrogate pairs), so "handle_surrogates" might be a suitable name.

If the intent is for it to be "handle_lone_surrogates", I'm not sure the current implementation achieves that, as a valid surrogate pair will match re.compile('[\ud800-\uefff]+').

The rest looks OK to me, including the decompose_astrals() and compose_surrogate_pairs() functions. Regardless of any practical utility, the latter two seem useful for *educational* purposes when it comes to unicode, by making it clear how to switch between the single code point and dual code point representations of the astrals.
历史
日期 用户 动作 参数
2015-03-17 12:18:58ncoghlan修改recipients: + ncoghlan, lemburg, pitrou, vstinner, ezio.melotti, Arfrever, r.david.murray, serhiy.storchaka
2015-03-17 12:18:58ncoghlan修改messageid: <1426594738.45.0.314347087639.issue18814@psf.upfronthosting.co.za>
2015-03-17 12:18:58ncoghlan链接issue18814 messages
2015-03-17 12:18:58ncoghlan创建