Mark Dickinson added the comment:

> The ambiguous signed conversion cases should be an error, the unambiguous 
> unsigned conversion case should be supported

+1. A signed representation *requires* 1 bit for the sign (regardless of 
whether the number being represented is negative or nonnegative), so it should 
be an error to encode into zero bytes. But there's nothing wrong with trying to 
encode 0 in zero bytes when using an unsigned representation.

----------
nosy: +mark.dickinson

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

Reply via email to