Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.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.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'received:209.85.223': 0.03; 'subject:: [': 0.04; 'broken': 0.04; 'method.': 0.07; 'subject:two': 0.07; 'spaces': 0.09; 'maillist': 0.16; 'quoted': 0.16; 'subject:Tutor': 0.16; 'subject:dictionaries': 0.16; 'url:tutor': 0.16; 'wrote:': 0.18; 'subject:] ': 0.20; 'feb': 0.22; 'to:name:python-list@python.org': 0.22; 'subject:like': 0.24; '>': 0.26; '15,': 0.26; 'post': 0.26; 'header:In-Reply- To:1': 0.27; 'subject:join': 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'comments': 0.31; 'url:python': 0.33; 'received:209.85': 0.35; 'something': 0.35; 'subject:lists': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'options:': 0.36; 'url:listinfo': 0.36; "didn't": 0.36; 'url:org': 0.36; 'email addr:python.org': 0.37; 'list.': 0.37; 'received:209': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'skip:_ 40': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'url:mail': 0.40; 'field.': 0.61; 'first': 0.61; 'field': 0.63; 'unsubscribe': 0.82; '2015': 0.84; 'otten': 0.84; '-\xc2\xa0': 0.91; 'joel': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=juJlgsg8dymxWJRqiQDAhxNWsHoMyB57j0B82Dm0pgg=; b=xvd+YFt5CDRHwqZvPtQBZuQCqXhLPiMPo6Vou3b7haXLFDX9x1ZlDw4bItuEF2J71z C4KuNaczc+oCDLAc4rQWWzF190LL6gEEwZEoMC4093yDPOcfONG3PJ9Z5E7s7IZBQ7bb 6NivAR1LpK6KO+Ijk51P8Zi3SuqVZfg9Z5HwMNJOaeeIC6x+gBhV2X7xyoFvycbd9TWi 8H7Bw1ryt9aCN6Xx8DSGPneTzPV//GSt9S8Qhj2bTJhaOpvarZ/ZNtPw9kscylu1P3ek BXPA2a/X5l8veChspWja39CO02SitAVIHRzvH6oFVtCD9D5K2K0Uyd7fPgLBBM8F1sR6 Sa5A== MIME-Version: 1.0 X-Received: by 10.107.47.216 with SMTP id v85mr33066021iov.86.1424139983129; Mon, 16 Feb 2015 18:26:23 -0800 (PST) In-Reply-To: References: <1423877077.197303.227364393.5C66E157@webmail.messagingengine.com> Date: Mon, 16 Feb 2015 21:26:23 -0500 Subject: Re: [Tutor] sql-like join on two lists or dictionaries From: Joel Goldstick To: "python-list@python.org" Content-Type: multipart/alternative; boundary=001a11351bc6ce1522050f3f6ddb 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: 69 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1424139991 news.xs4all.nl 2850 [2001:888:2000:d::a6]:40429 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:85727 --001a11351bc6ce1522050f3f6ddb Content-Type: text/plain; charset=UTF-8 On Sun, Feb 15, 2015 at 2:14 PM, Peter Otten <__peter__@web.de> wrote: > Joel Goldstick wrote: > > > You can dispense with the slicing if you use the str.split() method. It > > will put each item in a list. > > Only if there are no whitespace chars in the field. > > OT: > > Joel, your comments are already quoted when you first post them. Something > is broken in your workflow. > > not sure about quoting.. but the op didn't seem to have spaces in each > field > _______________________________________________ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor > -- Joel Goldstick http://joelgoldstick.com --001a11351bc6ce1522050f3f6ddb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Sun, Feb 15, 2015 at 2:14 PM, Peter Otten <__peter__@web.de><= /span> wrote:
Joel Golds= tick wrote:

> You can dispense with the slicing if you use the str.split() method.= =C2=A0 It
> will put each item in a list.

Only if there are no whitespace chars in the field.

OT:

Joel, your comments are already quoted when you first post them. Something<= br> is broken in your workflow.

not sure about quoting.. but the op didn't seem to have spaces in each = field
_______________________________________________
Tutor maillist=C2=A0 -=C2=A0 Tutor@pyth= on.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor



--
=
--001a11351bc6ce1522050f3f6ddb--