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/2002-October/029126.html below:

[Python-Dev] the not operator (and the __not__ special method)

[Python-Dev] the not operator (and the __not__ special method) [Python-Dev] the not operator (and the __not__ special method)Mark McEahern marklists@mceahern.com
Thu, 3 Oct 2002 16:59:09 -0500
> > And just for symmetry considerations, given that python has the
> > pairs (and, &) and (or, |), does anybody considering to introduce
> > the ! operator, so you can have the equivalent (not, !) too?
> 
> There is a bitwise not operator: ~
> 
> >>> ~2
> -3

Yeah, isn't ! reserved for shouting anyway?

// m



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