Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!tudelft.nl!txtfeed1.tudelft.nl!feeder1.cambriumusenet.nl!feed.tweaknews.nl!193.201.147.84.MISMATCH!xlned.com!feeder1.xlned.com!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-Id: <2708393.dWV9SEqChM@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Sun, 22 May 2011 23:57:11 +0200 User-Agent: KNode/4.4.7 Content-Transfer-Encoding: 7Bit Subject: Re: and becomes or and or becomes and Newsgroups: comp.lang.python References: Followup-To: comp.lang.python MIME-Version: 1.0 Lines: 22 NNTP-Posting-Date: 22 May 2011 23:57:11 CEST NNTP-Posting-Host: de6a6885.newsspool2.arcor-online.net X-Trace: DXC=]oG=]ZAO;bnPXlQ;h]GTMdA9EHlD;3Ycb4Fo<]lROoRa8kFnDZm8W4\YJNlT<8F<]0D<`i[0A>JV]oL2c2fnoM10NXcd X-Complaints-To: usenet-abuse@arcor.de Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:6011 Stef Mientki wrote: > 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 Change the order of the operands and see what happens. -- PointedEars Bitte keine Kopien per E-Mail. / Please do not Cc: me.