Re: Just curious: who is using Pike for what?
"Peter Bortas @ Pike importm?te f?r mailinglistan" <[email protected]> Wed, 14 Dec 2016 11:05:06 +0000 (UCT)
| Newsgroups | gmane.comp.lang.pike.user |
|---|---|
| Message-ID | <[email protected]> |
>On Tue, 13 Dec 2016, Chris Angelico wrote:
>>> upper_case("Ã") == "Ã";
>> (1) Result: 1
>> Python does:
>>>>> "Ã".upper()
>> 'SS'
Discussed this with grubba Yesterday. I don't think upper_case should
do this. Besides sometimes (possibly supricingly) introducing more
characters in a string it would break the
lower_case(upper_case(a)) == a
symmetry.
We should have a separate function for doing this in the Unicode
module, but I can't come up with a good name for
it. Unicode.upper_case() would not be particularly self
documenting. Unicode.special_upper_case()?