Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.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.059 X-Spam-Evidence: '*H*': 0.88; '*S*': 0.00; 'subject:: [': 0.04; 'broken': 0.04; 'method.': 0.07; 'subject:two': 0.07; 'spaces': 0.09; 'typed': 0.09; 'wrote': 0.14; 'posted': 0.15; 'quoted': 0.16; 'subject:Tutor': 0.16; 'subject:dictionaries': 0.16; 'wrote:': 0.18; 'subject:] ': 0.20; 'feb': 0.22; '>>>': 0.22; 'putting': 0.22; 'header:User-Agent:1': 0.23; 'subject:like': 0.24; '15,': 0.26; 'post': 0.26; 'header:In-Reply-To:1': 0.27; 'originally': 0.30; 'subject:join': 0.30; 'comments': 0.31; 'lines': 0.31; 'figure': 0.32; 'something': 0.35; 'subject:lists': 0.35; 'but': 0.35; 'there': 0.35; "didn't": 0.36; 'list.': 0.37; 'clear': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'most': 0.60; 'field.': 0.61; 'new': 0.61; "you're": 0.61; 'first': 0.61; 'field': 0.63; 'charset:windows-1252': 0.65; 'here': 0.66; 'reply': 0.66; 'received:74.208': 0.68; 'press': 0.70; 'programs,': 0.74; '2015': 0.84; 'otten': 0.84; 'received:74.208.4.194': 0.84; 'remarks': 0.84; 'joel': 0.91; 'response,': 0.91 Date: Mon, 16 Feb 2015 22:09:03 -0500 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: [Tutor] sql-like join on two lists or dictionaries References: <1423877077.197303.227364393.5C66E157@webmail.messagingengine.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:jb9gh1QeoNzUczMcWVfr2A3B0rybX9qlvKjXU4TIQUb PgaBYK4B2P+1K7DnwlXUHDj3iumnALlDqoujxeygaIqtkMLWkv JZkzUXDdJ+JZAUp5BhHsr47dIiCpblP5JSq/2w3Oa0pxXURw0l YEvvMmhdZddF+NSgWY3FTTF4wAhmnv71bVYEpbai8fv9XhEOD3 OYt2kElMvlEt9ayxWbsCe8p06ZMTXjdHjq35YmtIrZpNJy5QwM jHcbNr2yJa1/2sBHQlWhJjmN5uceh34txJ1GbUIIlcRfhFtoG3 IuZBQcf1zNLrdXnFq4ErNby3/cxjO2AIhFR1cBzzCAJ7SEmRe4 QQlKlMUuhz1UmyTXBB60= X-UI-Out-Filterresults: notjunk:1; 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: 32 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1424142558 news.xs4all.nl 2887 [2001:888:2000:d::a6]:55312 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:85729 On 02/16/2015 09:26 PM, Joel Goldstick wrote: > 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 Someone reading your message would figure you had typed nothing, since none of the lines start at the left margin. You're putting your new remarks after the ">" symbols, so they look like they're quoted from Peter. In most email programs, you just need to press once or twice to get an unindented line. Then type your response, so it's clear who wrote it. Worse, your message here is a reply to one originally posted in the tutor forum. -- DaveA