Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

I propose to change types of function parameters and local variables. In any 
case the constructor checks the range of parameters, so there is no problem 
with packing them into compact structure.

This will help to avoid errors of implicit conversion between different integer 
types. Also it can help to avoid code duplication in parsing integers of 
different size and signedness.

Adding a static assertion about the signedness of uint8_t looks meaningless to 
me.

----------

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

Reply via email to