On 02.05.2022 08:54, Chris Angelico wrote:
> On Mon, 2 May 2022 at 16:46, Serhiy Storchaka <storch...@gmail.com> wrote:
>>
>> 02.05.22 08:03, Chris Angelico пише:
>>> Let's not go as far as a PEP yet, and figure out a couple of things:
>>
>> A PEP is necessary if we add Roman numerals and Cyrillic numerals, and
>> Babylonian cuneiform numerals to the heap.
>>
> 
> I'm aware of PEP 313 for Roman, but not for the others. Was there a
> PEP when the int() constructor started to support other types of
> digits? I can't find one but it wouldn't surprise me.

That was a consequence of PEP 100, the addition of Unicode to the
language. There are now a lot more characters which represent digits
than we had in the 8-bit world.

Just a word of warning: numeric bases are not necessarily the same
as numeric encodings. The latter usually come with other formatting
criteria in addition to representing numeric values, e.g. base64 is
an encoding and not the same as representing numbers in base 64.

We have the binascii module for the encodings.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Experts (#1, May 02 2022)
>>> Python Projects, Coaching and Support ...    https://www.egenix.com/
>>> Python Product Development ...        https://consulting.egenix.com/
________________________________________________________________________

::: We implement business ideas - efficiently in both time and costs :::

   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611
               https://www.egenix.com/company/contact/
                     https://www.malemburg.com/

_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/57LZNQOJISWBWKXHIRSZVXYAKLDTUXMS/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to