A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-March/062484.html below:

[Python-Dev] bytes thoughts

[Python-Dev] bytes thoughts [Python-Dev] bytes thoughtsJosiah Carlson jcarlson at uci.edu
Fri Mar 17 01:47:37 CET 2006
Baptiste Carvello <baptiste13 at altern.org> wrote:
> Josiah Carlson a écrit :
> 
> > They aren't considered because they are *obvious* to most (if not all)
> > sane people who use Python.  
> 
> They are not *that* obvious. Logical operations on ints have allowed users to 
> forget about size (and shoot themselves in the foot from time to time). Or is
> 1^(~1) == -1 obvious ? Well, maybe that's not sane either :-)

I find most operations involving ~ to be insane (just a personal opinion),
but in this case, if one assumes two's compliment arithmetic (which
seems fairly reasonable considering current standard platforms), an
integer, all of whose bits are 1, dictates that the value be -1.  An
insane use of ~, but a sane result.  *shrug*

 - Josiah

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4