Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:file': 0.07; 'suppose': 0.07; 'imho.': 0.09; 'modifies': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'sep': 0.09; 'subject:python': 0.11; 'properly': 0.15; 'clears': 0.16; 'considers': 0.16; 'otoh,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:API': 0.16; 'documented': 0.17; 'bit': 0.21; "i'd": 0.22; 'sets': 0.23; 'device': 0.24; 'setting': 0.26; 'fit': 0.26; "doesn't": 0.28; 'header:X-Complaints-To:1': 0.28; 'behaviour': 0.29; '+0200,': 0.33; 'impression': 0.33; 'url:home': 0.33; 'to:addr:python-list': 0.33; 'received:org': 0.36; 'charset:us-ascii': 0.36; 'ok,': 0.37; 'quite': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'where': 0.40; 'header:Received:5': 0.40; 'think': 0.40; '(that': 0.62; 'thomas': 0.62; 'rachel': 0.84; 'dennis': 0.91; 'outset': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: python file API Date: Tue, 25 Sep 2012 04:13:51 -0400 Organization: > Bestiaria Support Staff < References: <0ec1fe2e-890c-4e25-8047-4cb8bee0aa95@googlegroups.com> <5060D55C.3000407@davea.name> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-253-103-108.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348560833 news.xs4all.nl 6864 [2001:888:2000:d::a6]:51664 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:30042 On Tue, 25 Sep 2012 07:32:31 +0200, Thomas Rachel declaimed the following in gmane.comp.python.general: > Or some bit setting registers, like on ATxmega: OUT = 0x10 sets bit 7 > and clears all others, OUTSET = 0x10 only sets bit 7, OUTTGL = 0x10 > toggles it and OUTCLR = 0x10 clears it. > > If this behaviour is documented properly enough, it is quite OK, IMHO. > I don't think I'd want to work with any device where 0x10 (00010000 binary) modifies bit SEVEN. 0x40, OTOH, would fit my mental impression of bit 7. It doesn't even fit my mind if the value is suppose to be the /bit number/ unless the device considers "bit 7" to be the EIGHTH bit (that is, the LSB is considered bit 1, not bit 0) -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/