Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #85023

Re: Create dictionary based of x items per key from two lists

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.034
X-Spam-Evidence '*H*': 0.93; '*S*': 0.00; 'subject:two': 0.07; 'latter': 0.09; 'lawrence': 0.09; 'lines.': 0.09; 'python': 0.11; 'bug': 0.12; 'delighted': 0.16; 'java.': 0.16; 'quest': 0.16; 'subject:based': 0.16; 'subject:key': 0.16; 'wrote:': 0.18; 'module': 0.19; 'feb': 0.22; 'tracker': 0.26; 'header:In-Reply- To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'subject:per': 0.31; 'running': 0.33; 'subject:from': 0.34; 'subject:lists': 0.35; 'received:google.com': 0.35; 'raising': 0.36; 'reflect': 0.36; 'entry': 0.36; "i'll": 0.36; 'changing': 0.37; 'to:addr:python- list': 0.38; 'issue': 0.38; 'to:addr:python.org': 0.39; 'changed': 0.39; 'new': 0.61; "you're": 0.61; 'times': 0.62; 'name': 0.63; 'containing': 0.69; '100': 0.79; '2015': 0.84; 'zen': 0.84; 'edwards': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=ekXLsYgtkoUvd5Djge/xZKtzpUd2TjfMC2TqbSVttas=; b=o4J/KeXol1m4xwV1Z/g4x63kpzRKZXhhXisNUYLPwcvdQQUw0pVJZuHwj6zY1jpGE2 bJKXgf8RFhTkTAE/1Lfp9G81k3Ld7nAWKd+8RpM5Y+KeEPtVJ0g2EpdZGCP7N9SQR/AP bbNZrJJs89+TKW1O0U7nse6p5onOyFx2wR/tiSqhXGFSt+RfAPW+OT+TQdW+pCplz6eu MXVr6pj0ixPxaYLtXJad5JgS7LOaPdvZtCSrQws1oVwxLk0cOeBC8bfYPbAG9WWnLClc LoZbaAkqZJclsyYnxpLRRa0dusqtJyCOTnJMA1vdxeY4hkgIUnY6hz3w6d/Ucp3XZ5uw 3MBg==
X-Received by 10.66.120.67 with SMTP id la3mr15252005pab.66.1422819414688; Sun, 01 Feb 2015 11:36:54 -0800 (PST)
MIME-Version 1.0
In-Reply-To <malsg0$6dh$1@ger.gmane.org>
References <0dddee06-233b-436a-be48-3c16e62c1718@googlegroups.com> <CAPTjJmoJmr6PUwGEtpOZ=i2Kff=AMEuuK2kvzuT23fefJg1j8g@mail.gmail.com> <mak57e$3pd$1@ger.gmane.org> <mailman.18347.1422760944.18130.python-list@python.org> <malqet$kf0$1@reader1.panix.com> <malsg0$6dh$1@ger.gmane.org>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Sun, 1 Feb 2015 12:36:14 -0700
Subject Re: Create dictionary based of x items per key from two lists
To Python <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.18373.1422819423.18130.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1422819423 news.xs4all.nl 2913 [2001:888:2000:d::a6]:38170
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:85023

Show key headers only | View raw


On Sun, Feb 1, 2015 at 11:49 AM, Mark Lawrence <breamoreboy@yahoo.co.uk> wrote:
> On 01/02/2015 18:14, Grant Edwards wrote:
>> A loop containing 1 line of code will execute in the same abount of
>> time as that loop with 1 line of code and 99 blanks lines.
>>
>> The latter loop is running at 100 times as many lines/second as the
>> former.   That's _got_ to be better.
>>
>
> At long last my quest seeking the final entry for the Zen of Python is over.
> I'll be delighted to let you accept the honour of raising an issue on the
> bug tracker to get the "this" module changed to reflect my new found wisdom.

And while you're at it, please also work on changing the name of the
module to "self" -- "this" is for Java.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Create dictionary based of x items per key from two lists rajanbond@gmail.com - 2015-01-30 18:27 -0800
  Re: Create dictionary based of x items per key from two lists Chris Angelico <rosuav@gmail.com> - 2015-01-31 13:38 +1100
  Re: Create dictionary based of x items per key from two lists Jason Friedman <jsf80238@gmail.com> - 2015-01-31 19:38 -0700
    Re: Create dictionary based of x items per key from two lists rajanbond@gmail.com - 2015-02-02 10:48 -0800
    Re: Create dictionary based of x items per key from two lists rajanbond@gmail.com - 2015-02-02 11:00 -0800
  Re: Create dictionary based of x items per key from two lists Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-02-01 03:06 +0000
  Re: Create dictionary based of x items per key from two lists Chris Angelico <rosuav@gmail.com> - 2015-02-01 14:22 +1100
    Re: Create dictionary based of x items per key from two lists Grant Edwards <invalid@invalid.invalid> - 2015-02-01 18:14 +0000
      Re: Create dictionary based of x items per key from two lists Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-02-01 18:49 +0000
      Re: Create dictionary based of x items per key from two lists mm0fmf <none@mailinator.com> - 2015-02-01 18:52 +0000
      Re: Create dictionary based of x items per key from two lists Ian Kelly <ian.g.kelly@gmail.com> - 2015-02-01 12:36 -0700
        Re: Create dictionary based of x items per key from two lists wxjmfauth@gmail.com - 2015-02-02 23:13 -0800
      Re: Create dictionary based of x items per key from two lists Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-02-01 20:28 +0000
      Re: Create dictionary based of x items per key from two lists Chris Angelico <rosuav@gmail.com> - 2015-02-02 07:33 +1100
  Re: Create dictionary based of x items per key from two lists Ian Kelly <ian.g.kelly@gmail.com> - 2015-02-01 11:51 -0700

csiph-web