Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'syntax': 0.04; 'value,': 0.04; 'assign': 0.07; 'attribute': 0.07; 'literal': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'missed': 0.12; 'message-id:@4ax.com': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'starts': 0.20; '>>>': 0.22; 'integer': 0.24; 'url:home': 0.24; 'header:X-Complaints-To:1': 0.27; 'point': 0.28; '"",': 0.31; '>>>>': 0.31; 'sep': 0.31; 'skip:7 10': 0.31; 'file': 0.32; '(most': 0.33; 'fri,': 0.33; "can't": 0.35; 'skip:> 10': 0.36; 'charset:us-ascii': 0.36; 'skip:. 20': 0.38; 'to:addr:python-list': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'invalid': 0.68; 'received:108': 0.93; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: PEP8 79 char max Date: Fri, 06 Sep 2013 19:22:07 -0400 Organization: IISS Elusive Unicorn References: <640206d7-a42f-4ae8-b9d6-cd5b3d158a6c@googlegroups.com> <86d2dc56-05b4-45e8-b2e8-0fc128ec3724@googlegroups.com> <20130906053525.1b07b775@bigbox.christie.dr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-79-220-180.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 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: 35 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1378509739 news.xs4all.nl 15897 [2001:888:2000:d::a6]:37065 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:53813 On Fri, 6 Sep 2013 05:24:42 -0700 (PDT), Metallicow declaimed the following: > >RailRoadTieWidth = 79.1234567890 > >>>> 79 = 'Width Of A Horse"s Ass' > File "", line 1 >SyntaxError: can't assign to literal > >>>>RailRoadTieWidth.attribute >("American", "Steam") > >>>>79.attribute = ("Roman", "Chariot") > File "", line 1 > 79.attribute = ("Roman", "Chariot") > ^ >SyntaxError: invalid syntax > You missed one... >>> 79 .attribute=("Roman", "Chariot") Traceback (most recent call last): File "", line 1, in AttributeError: 'int' object has no attribute 'attribute' >>> 79.attribute starts off looking like a floating point value, and chokes on the non-decimal digit "a"... 79 .attribute starts off as an integer and an attribute access. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/