Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #29939
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <dwightdhutto@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'algorithm': 0.03; 'value,': 0.03; 'function,': 0.07; 'referring': 0.07; '22,': 0.09; 'least)': 0.09; 'received:mail-vc0-f174.google.com': 0.09; 'requested.': 0.09; 'sep': 0.09; 'stated.': 0.09; 'cc:addr:python- list': 0.10; '(the': 0.15; 'sat,': 0.15; 'value.': 0.15; '24,': 0.16; 'dictionaries': 0.16; 'keys.': 0.16; 'simpler,': 0.16; 'situation.': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'example.': 0.17; 'examples': 0.18; '>>>': 0.18; 'meant': 0.21; 'keys': 0.22; 'occurs': 0.22; 'cc:2**0': 0.23; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'common': 0.26; 'values': 0.26; 'message-id:@mail.gmail.com': 0.27; "doesn't": 0.28; 'correct': 0.28; 'key,': 0.29; 'received:209.85.220.174': 0.29; 'no,': 0.29; 'function': 0.30; 'code': 0.31; 'comments': 0.33; 'ones,': 0.33; 'values.': 0.33; 'problem': 0.33; 'point.': 0.33; 'version': 0.34; 'received:google.com': 0.34; 'list': 0.35; 'mine': 0.35; 'pm,': 0.35; 'received:209.85.220': 0.35; 'similar': 0.35; 'received:209.85': 0.35; 'created': 0.36; 'but': 0.36; 'bad': 0.37; 'one,': 0.37; 'does': 0.37; 'being': 0.37; 'why': 0.37; 'quite': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'comment': 0.38; 'mean': 0.38; 'some': 0.38; 'several': 0.39; 'takes': 0.39; 'where': 0.40; 'header:Received:5': 0.40; 'your': 0.60; 'first': 0.61; 'solve': 0.62; 'close': 0.63; 'times': 0.63; 'due': 0.66; 'counts': 0.81; 'complexity': 0.84; 'dict.': 0.84; 'easier,': 0.84; 'furman': 0.84; 'am.': 0.91; 'ethan': 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 :cc:content-type; bh=97p/6Yrd3p1aAf/F/0IH4Jyn3SaQ8tl0w5q49q4R5rM=; b=J6+KAJtvsonOEkkN4DKs4UMPkH/4DzgpH20cnqD/hjyYVxlrz+893iJnzovA6+LYtv m4ZFTdn+97RuP9RDOMRxO9KbLcWzxMy7LW8fXaF9zj/MscSAU/hBsT/ABnQk3Wrd8D+H SjaADHFTNPv1jGrOKVhKYMRKfF1V79kVjE0KF93A/xAxF70pBZttNrCDiXAibLc4QByi 3VDE1Oyw6GFza2MDLIep4kceJlThUp3Y/1PiNwVrB3WRY1NBn55ytp5K7Mj0Ky7wbt/5 vIzfFmaRQ+s5fTyRLowd6tDZ3fzeJC+13A8S6eRlgmeKmpudP18Me6EIUePIBWNj8aCc Tdsw== |
| MIME-Version | 1.0 |
| In-Reply-To | <5060CE37.8080409@stoneleaf.us> |
| References | <k3c9jb$2gr$1@ger.gmane.org> <CA+vVgJXh2PyeAT5LdWD6twijHPhmAoL9UPJxj+QJXvmey-WAgQ@mail.gmail.com> <mailman.911.1348056502.27098.python-list@python.org> <evH6s.1159$U54.270@newsfe01.iad> <CA+vVgJVbkYc=O_fhkSNGPKwF80Jg6X7LTOvdQAJ_agoOQbLOVg@mail.gmail.com> <CALwzidn7ztCJup+kPTVwLFFJj-Hxg5EM0PFsryHzca1T9DA9Aw@mail.gmail.com> <5060CE37.8080409@stoneleaf.us> |
| Date | Mon, 24 Sep 2012 18:07:20 -0400 |
| Subject | Re: A little morning puzzle |
| From | Dwight Hutto <dwightdhutto@gmail.com> |
| To | Ethan Furman <ethan@stoneleaf.us> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Cc | Python <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 <python-list.python.org> |
| List-Unsubscribe | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1221.1348524443.27098.python-list@python.org> (permalink) |
| Lines | 48 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1348524443 news.xs4all.nl 6899 [2001:888:2000:d::a6]:42680 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:29939 |
Show key headers only | View raw
On Mon, Sep 24, 2012 at 5:18 PM, Ethan Furman <ethan@stoneleaf.us> wrote: > Ian Kelly wrote: >> >> On Sat, Sep 22, 2012 at 9:44 PM, Dwight Hutto <dwightdhutto@gmail.com> >> wrote: >>> >>> Why don't you all look at the code(python and C), and tell me how much >>> code it took to write the functions the other's examples made use of >>> to complete the task.n in or register. >>> >>> Just because you can use a function, and make it look easier, doesn't >>> mean the function you used had less code than mine, so if you look at >>> the whole of what you used to make it simpler, mine was on point. >> >> >> I understood the sarcastic comments (the first one, at least) to be >> referring to your solution as bad not due to complexity (I actually >> thought it was quite simple), but because it does not solve the >> problem as stated. The problem posed by the OP was to find a set of >> common keys that are associated with the same values in each dict. >> Your solution takes only one predetermined key-value pair and counts >> how many times it occurs in the dicts, which isn't even close to what They stated: I have a list of dictionaries. They all have the same keys. I want to find the set of keys where all the dictionaries have the same values. Suggestions? No, to me it meant to find similar values in several dicts with the same key, and value. So I created several dicts, and some with the same key and value, and showed the matches. The OP can comment as to whether that is the correct interpretation of the situation. >> was requested. With your comment of "Might be better ones, though", I >> actually thought that you were aware of this and were being >> intentionally satirical. I am. I just write out the algorithm as I understand the OP to want it, to give my version of the example. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: A little morning puzzle Peter Otten <__peter__@web.de> - 2012-09-19 14:09 +0200
Re: A little morning puzzle Tobiah <toby@tobiah.org> - 2012-09-20 09:28 -0700
Re: A little morning puzzle Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-22 23:44 -0400
Re: A little morning puzzle alex23 <wuwei23@gmail.com> - 2012-09-23 20:46 -0700
Re: A little morning puzzle Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-24 17:22 -0400
RE: A little morning puzzle "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-09-27 17:58 +0000
Re: A little morning puzzle Ian Kelly <ian.g.kelly@gmail.com> - 2012-09-23 22:51 -0600
Re: A little morning puzzle Ethan Furman <ethan@stoneleaf.us> - 2012-09-24 14:18 -0700
Re: A little morning puzzle Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-24 18:07 -0400
Re: A little morning puzzle Ian Kelly <ian.g.kelly@gmail.com> - 2012-09-24 17:01 -0600
Re: A little morning puzzle Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-24 19:13 -0400
csiph-web