Re: Just curious: who is using Pike for what?
Chris Angelico <[email protected]>
| Newsgroups | gmane.comp.lang.pike.user |
|---|---|
| Message-ID | <CAPTjJmp1+GVHC9kGuOjQC1qgezB_hfCi6GOKsadr3oS03w=Ykw@mail.gmail.com> |
On Tue, Dec 13, 2016 at 12:30 AM, Martin Nilsson (Coppermist) @ Pike (-) importmöte för mailinglistan <[email protected]> wrote: >>3) Text/data manipulation. Vies with Python for top spot at this; I >>love sscanf's expressiveness, but Python has marginally better Unicode >>support (eg upper/lower case that acknowledge the Unicode tables). > > Can you expand a bit on the Unicode support part? Pike follows the > unicode table for the upper/lower case functions, but perhaps you are > referring to something more. Pike doesn't handle things like eszett: > upper_case("ß") == "ß"; (1) Result: 1 Python does: >>> "ß".upper() 'SS' Also, Python has a 'unicodedata' module that allows name lookups and such, although that's not a language feature. That's why I said "marginally". I may have been slightly inaccurate about "acknowledge the Unicode tables", as Pike's case conversions do seem to follow part of them, but there are parts that aren't followed, so I'm not sure what is and what isn't. ChrisA