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 Manishearth
Recipients Bert JW Regeer, Guillaume Sanchez, Manishearth, Socob, _savage, benjamin.peterson, bianjp, ezio.melotti, lemburg, loewis, mcepl, methane, mrabarnett, p-ganssle, r.david.murray, scoder, serhiy.storchaka, steven.daprano, terry.reedy, vstinner, xiang.zhang
Date 2020-01-07.08:20:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1578385210.83.0.540858035312.issue30717@roundup.psfhosted.org>
In-reply-to
Content
> Does `unicode-segmentation` support all platforms that CPython supports?

It's no-std, so it supports everything the base Rust compiler supports (which is basically everything llvm supports).

And yeah, if there's something that doesn't match with the support matrix this isn't going to work. 


However, I suggested this more for the potential PyPI package. If you're working this into CPython you'd have to figure out how best to include Rust stuff in your build system, which seems like a giant chunk of scope creep :)



For including in CPython I'd suggest looking through unicode-segmentation and writing a C version of it. We use a python script[1] to generate the data tables, this might be something y'all can use. Swift's UAX 29 implementation is also quite interesting, however it's baked in deeply to the language so it's less useful as a starting point.


 [1]: https://github.com/unicode-rs/unicode-segmentation/blob/master/scripts/unicode.py
History
Date User Action Args
2020-01-07 08:20:10Manishearthsetrecipients: + Manishearth, lemburg, loewis, terry.reedy, scoder, vstinner, benjamin.peterson, mcepl, ezio.melotti, mrabarnett, steven.daprano, r.david.murray, methane, serhiy.storchaka, _savage, xiang.zhang, p-ganssle, Socob, Guillaume Sanchez, Bert JW Regeer, bianjp
2020-01-07 08:20:10Manishearthsetmessageid: <1578385210.83.0.540858035312.issue30717@roundup.psfhosted.org>
2020-01-07 08:20:10Manishearthlinkissue30717 messages
2020-01-07 08:20:10Manishearthcreate