[Python-ideas] Negative hexes

Bruce Leban bruce at leapyear.org
Tue Dec 6 01:24:45 CET 2011


On Mon, Dec 5, 2011 at 4:14 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:

>
> I'd be OK with dropping the explicit 'twos' qualifier, though - then
> the method name could just be "to_complement()".
>

That name's ambiguous since there's also one's complement as well as ten's
and nine's complements.

Also, perhaps from_twos_complement might be a clearer name than to_signed.

--- Bruce
Follow me: http://www.twitter.com/Vroo http://www.vroospeak.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20111205/79a4526f/attachment.html>


More information about the Python-ideas mailing list