STINNER Victor added the comment:

> This request was part of the original bug report, so why open a new issue?

Making two C functions public is very different from supporting intmax_t. I 
expect a change of a few lines, whereas my intmax_t patch modified a lot of 
code.

I wanted to simplify the C code of CPython, I didn't care of the public support 
for intmax_t (but I considered that it would be nice to have).

The thing is that portability is complex, CPython wants to support as much 
platforms as possible. We only moved to C99 with Python 3.6, before stdint.h 
was not required. There are always minor compatibility issues, so it's simpler 
to not try to support an uncommon C type (intmax_t), and rather support a very 
generic functions "here are bytes, give me a Python int object".

It would solve your use case as well ;-)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17870>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to