Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Stephen Hansen Newsgroups: comp.lang.python Subject: Re: pylint woes Date: Sun, 08 May 2016 08:11:41 -0700 Lines: 24 Message-ID: References: <1462673665.770286.601202553.071593AE@webmail.messagingengine.com> <1462720301.895956.601491969.5975510C@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de /MCcTPt5WGjwJonvKC7+DgtHBuXukW11A4E82yP2mjcA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'anyway.': 0.04; 'received:internal': 0.09; 'python': 0.10; '"insert': 0.16; 'dfs': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:io': 0.16; 'received:messagingengine.com': 0.16; 'received:psf.io': 0.16; 'skip:z 30': 0.16; 'vals': 0.16; 'wrote:': 0.16; 'stephen': 0.22; 'am,': 0.23; 'long,': 0.24; 'header:In-Reply-To:1': 0.24; 'values': 0.28; 'long.': 0.29; 'addresses': 0.32; 'options': 0.33; 'trouble': 0.35; 'but': 0.36; 'too': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'doing': 0.38; 'received:66': 0.38; 'whatever': 0.39; 'to:addr:python.org': 0.40; 'street,': 0.60; 'header:Message-Id:1': 0.61; 'making': 0.62; 'better.': 0.66; 'state,': 0.66; 'awesome,': 0.84; 'states,': 0.93 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=ixokai.io; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=5ikrDIdjBHhRUUqhhEzRFe9yVr8=; b=EWb2DT ZVDyStvZ1FqltqITn25LQNGj7hMRR6FwmWTolcnx+JzR19/rrRMNAoHEbfyPVhs1 TOGyMkrLokLgFGEPUlLJOzOD4Facr14bPMzgJoAAQYUd9FjRbTchf9tsn1O1iS4Q XDtVHj5Zy5CCbTYUMzFTYxaRAZtZ/+x+9KRA4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=5ikrDIdjBHhRUUq hhEzRFe9yVr8=; b=Vn1RhOvljco3KWwncuCP6AuE8K+NWuassYEujZnhVVQcq0k zo+KVHLXiqdV+doX3vEi8me6UCj5w84+jtFI2SRsaYK9BeOtC4tuJL3XjmroGUHI JrChl1Dm+ZhIoBXFYkPJupPRY8/LRaIqyJfYKTOYL/uyzdGREZGJhEHG2ikk= X-Sasl-Enc: zlxz0P6vX8xwMohuaoiXfF34aykSJr7yNrEOQvW7lN0V 1462720301 X-Mailer: MessagingEngine.com Webmail Interface - ajax-140377c4 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <1462720301.895956.601491969.5975510C@webmail.messagingengine.com> X-Mailman-Original-References: <1462673665.770286.601202553.071593AE@webmail.messagingengine.com> Xref: csiph.com comp.lang.python:108360 On Sun, May 8, 2016, at 07:25 AM, DFS wrote: > for nm,street,city,state,zipcd in zip(nms,street,city,state,zipcd): > > for vals in zip(nms,street,city,state,zipcd): > > nm,street,city,state,zipcd = vals > > cSQL = "INSERT INTO ADDRESSES VALUES (?,?,?,?,?)" > > > I like the first one better. python is awesome, but too many options > for doing the same thing also makes it difficult. For me, anyway. Eeh, Now you're just making trouble for yourself. for name, street, city, state, zipcd in zip(names, streets, cities, states, zipcds): .... may be sorta vaguely long, but its not that long. Just do it and move on. Get over whatever makes you not like it. -- Stephen Hansen m e @ i x o k a i . i o