Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.108 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.79; '*S*': 0.00; 'bits': 0.07; '>>>': 0.12; 'stef': 0.16; 'cheers,': 0.19; 'received:209.85.215': 0.30; 'received:209.85.215.46': 0.30; 'received:mail- ew0-f46.google.com': 0.30; 'looks': 0.31; 'to:addr:python-list': 0.33; 'header:User-Agent:1': 0.35; 'message-id:@gmail.com': 0.36; 'received:google.com': 0.37; 'received:209.85': 0.37; 'hello,': 0.38; 'but': 0.38; 'received:192': 0.38; 'received:209': 0.39; 'to:addr:python.org': 0.39; 'received:192.168.1': 0.40; 'funny': 0.76; 'sight,': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:x-enigmail-version:content-type:content-transfer-encoding; bh=TutfB8ae7FpWphNLucXNMpIpVna9ZuWY7f0vjZuUIjY=; b=vfYDlyolmeLvZ0lVp2OBP0NWfmaBbenbc/iL5imtp9wUCeCsjxdPtwq9oC/j95TQ7N o0/TtwJH6LXLZBvLc+6e1WH5h9LzJu0IXsix+Lr63B4xCVq7JBp+RnrwLC1dOf46QhF3 gxVkbrxoIRbBJcKTdbSWz3siFDE/svbJRJ1Q8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :x-enigmail-version:content-type:content-transfer-encoding; b=CNpjMBj4gYwAu4SOzvuoz/SGGH58DDIapcFZe15u2puez33QDwMVINpoEDRFuGEIEp a6Q3e/Xvrb21oDq7lzRGmQLLqtccOqJK4DLFlb3qD+kVdvJhxgAQGRZ2GMYzvuM0wGc3 Fzt61zq5bikAkq2GqJkOh1mgY7FPkSiUI2bEc= Date: Sun, 22 May 2011 21:23:03 +0200 From: Stef Mientki User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: python-list@python.org Subject: and becomes or and or becomes and X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 18 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1306092188 news.xs4all.nl 49180 [::ffff:82.94.164.166]:33231 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:6000 hello, must of us will not use single bits these days, but at first sight, this looks funny : >>> a=2 >>> b=6 >>> a and b 6 >>> a & b 2 >>> a or b 2 >>> a | b 6 cheers, Stef