Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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.045 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'binary': 0.07; "'or',": 0.16; 'bitwise': 0.16; 'integer.': 0.16; 'operations?': 0.16; 'header:User-Agent:1': 0.23; 'instance,': 0.24; 'received:10.0.0': 0.31; 'something': 0.35; 'received:google.com': 0.35; 'received:10.0': 0.36; 'received:10': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'email addr:gmail.com': 0.63 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=Z7A/m+ZAS/WE5wUEa8A3Xt7gTpV48qJ5HwFJh+ML7tg=; b=WIRVoPYl+bku6HEFWMZ22umk96xiZzbT0h8rVHL7MwyrfHBEbrXn1rLt8G+xOC7HS+ yF4TiLdZm8sdivfNN2YbeSTl5QAVZrm0x0HNS18c9zU25CsK2r/ILUmCKlssAxTcv9rN W0HNPSWzvlVJEaUDKoyHj8/tdQCeqpaKFz2zvluZ6LXsuUC/E+txOq21ILqcUh3bY1bf 9BdLKbNEAqsrArB1Va7k1Lqzmn/W9cZ7nn5NMMrJwZCKWUC6Ryh6EUB/shqF5dKGfqRi 9rrsqpuRMGEYKK0peW9HU5DDaXyEN9LM9zyr1T7mA8g498NhGbg1RNKY1g2LPzWxVbkh o2XQ== X-Received: by 10.58.230.135 with SMTP id sy7mr26538560vec.42.1375133117152; Mon, 29 Jul 2013 14:25:17 -0700 (PDT) Date: Mon, 29 Jul 2013 17:25:14 -0400 From: Devyn Collier Johnson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: Python Mailing List Subject: Bitwise Operations Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 6 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1375134621 news.xs4all.nl 15956 [2001:888:2000:d::a6]:36610 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:51506 On Python3, how can I perform bitwise operations? For instance, I want something that will 'and', 'or', and 'xor' a binary integer. Mahalo, DevynCJohnson@Gmail.com