Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!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.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'i\xe2\x80\x99ve': 0.09; 'cc:addr:python-list': 0.11; '-tkc': 0.16; '8bit%:26': 0.16; 'comma': 0.16; 'comma.': 0.16; 'count,': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'subject:Remove': 0.16; 'subject:python.': 0.16; 'travis': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; "i've": 0.25; 'header:In-Reply-To:1': 0.27; 'nature': 0.30; 'subject:from': 0.34; 'too': 0.37; 'sure': 0.39; 'times': 0.62; 'places': 0.64; 'to:addr:gmail.com': 0.65; 'received:50.22': 0.84 Date: Fri, 21 Feb 2014 12:07:00 -0600 From: Tim Chase To: Travis Griggs Subject: Re: Remove comma from tuples in python. In-Reply-To: <713237AA-4017-45AB-922F-A7121CBE4593@gmail.com> References: <8ca893cc-c010-486b-ace3-070ff7ffdac8@googlegroups.com> <20140221080032.67e536f9@bigbox.christie.dr> <713237AA-4017-45AB-922F-A7121CBE4593@gmail.com> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com X-Get-Message-Sender-Via: boston.accountservergroup.com: authenticated_id: tim@thechases.com Cc: python-list@python.org 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1393005989 news.xs4all.nl 2925 [2001:888:2000:d::a6]:39352 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:66838 On 2014-02-21 09:48, Travis Griggs wrote: > I=E2=80=99ve used the comma form with struct.unpack() frequently: >=20 > count, =3D struct.unpack(=E2=80=98!I=E2=80=99, self.packet) This is *especially* one of those places I want extra parens to make sure I see what's happening. I've been stung too many times by the easy-to-miss nature of just a single comma. -tkc