Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #101570
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Bernardo Sulzbach <mafagafogigante@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: subscripting Python 3 dicts/getting the only value in a Python 3 dict |
| Date | Tue, 12 Jan 2016 17:12:32 -0200 |
| Lines | 4 |
| Message-ID | <mailman.83.1452625998.13488.python-list@python.org> (permalink) |
| References | <f2711b57-7b11-4fd5-8bab-a3e8581177b5@googlegroups.com> <n73dc3$jcn$1@ger.gmane.org> <CAERt=-ygqTcyHRd74MAfNueRagwGZd42sE+YaXMGbpJUGk=vHA@mail.gmail.com> <n73ie7$a81$1@ger.gmane.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de 9dB7+CjW55jFWNMk62L3VwWQbmlGJO98hM3InTjIy16w== |
| Return-Path | <mafagafogigante@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.167 |
| X-Spam-Level | * |
| X-Spam-Evidence | '*H*': 0.68; '*S*': 0.01; 'subject:Python': 0.05; 'subject:getting': 0.07; 'received:io': 0.16; 'received:psf.io': 0.16; 'header:In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'subject:/': 0.30; 'another': 0.32; 'list': 0.34; 'received:google.com': 0.35; 'too': 0.36; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'subject:the': 0.39; 'to:addr:python.org': 0.40; 'still': 0.40; 'skip:n 10': 0.62; 'making': 0.62; 'intent': 0.66; 'course.': 0.67; 'answer.': 0.72; 'saw': 0.77; 'subject:value': 0.84 |
| 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=nhui26fYnd8NTJb4b4BRSA8agtej6tbfP5+zSgM1UuI=; b=x1fBKP0vmWviaNJWW0WVGBwj2v+ZKffvdKSPdzEVnGbX4YMtvbCevRpWhxtet0bukB SoD1jQ2Dp17IVaBXPiIiw4Ef6+VDV76oABjxzeZN6ggsV+4zic9A9o6+s4ZfeBozpwHy orYCZQLRGq9NMqXyogDKQl3mVRGquPwi0390W0ZFv1S7AunAzftVazmrnwatQQALbE55 DopW5s9+fyntxFXfh6bzgSL9abt/ATsVPA24T+m4u8RGRhpDO0ytbFEhitNsnVuzpYD+ HkGW3DV6J6KjJUND1uFBi+EinLSjB+Q+yw0+edOyEC3JnK/0yEpQKqD1cIvLpYMb98QQ AAxw== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=nhui26fYnd8NTJb4b4BRSA8agtej6tbfP5+zSgM1UuI=; b=esgjwi+C3jWImj9Y0STD93nBaY/HxemCGt+EkOHU/gTS5Ng8sd0wCoJCGbCHsUBhh8 3px+dwcPQIpeRd9IHtgxQtVnnwGqrnbVV1Z0K91nOlPM5HZfAziY/iS97JDBcPDsGZeB 6fDdYZYYV6tNIH/QjSe9DqOLVKi+H5E09vr1YhbDg8zIJMsXLOki+8T+tTZuMLosYvY8 2HS+hVYYPyouzA4UZ6WvtBCvD8T+GKtqF+J7kTh1eSxM7FB9Lsi4wrfcYRtQX/yx5hrW ZByj0zDiqDTXyshdUQKuAPgOIyzoyyYugudvZVIHQoWWHifuSTWgxba7JWIFld1t5pRc 1Iwg== |
| X-Gm-Message-State | ALoCoQmJ9rPcIMSrDsjSVW6fM+kNstrEJoIFMqmEE/FtNrN4UquuWkRqHGADiRTfmfSeH0lyUbfnnjWPVbWjNVIHWNZX+VijJQ== |
| X-Received | by 10.25.209.80 with SMTP id i77mr42457255lfg.33.1452625991621; Tue, 12 Jan 2016 11:13:11 -0800 (PST) |
| In-Reply-To | <n73ie7$a81$1@ger.gmane.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| 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> |
| Xref | csiph.com comp.lang.python:101570 |
Show key headers only | View raw
I saw it in another answer. next(iter(d)) is still the winner. This resembles a list just too much, making the coder's intent harder to understand. This is **very** subjective, of course.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
subscripting Python 3 dicts/getting the only value in a Python 3 dict Nick Mellor <thebalancepro@gmail.com> - 2016-01-12 08:50 -0800
RE: subscripting Python 3 dicts/getting the only value in a Python 3 dict Emanuel Barry <vgr255@live.ca> - 2016-01-12 12:00 -0500
Re: subscripting Python 3 dicts/getting the only value in a Python 3 dict Chris Angelico <rosuav@gmail.com> - 2016-01-13 04:06 +1100
Re: subscripting Python 3 dicts/getting the only value in a Python 3 dict Terry Reedy <tjreedy@udel.edu> - 2016-01-12 12:12 -0500
Re: subscripting Python 3 dicts/getting the only value in a Python 3 dict Bernardo Sulzbach <mafagafogigante@gmail.com> - 2016-01-12 15:18 -0200
Re: subscripting Python 3 dicts/getting the only value in a Python 3 dict Peter Otten <__peter__@web.de> - 2016-01-12 18:32 +0100
Re: subscripting Python 3 dicts/getting the only value in a Python 3 dict Ian Kelly <ian.g.kelly@gmail.com> - 2016-01-12 10:39 -0700
Re: subscripting Python 3 dicts/getting the only value in a Python 3 dict Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-01-12 19:47 +0200
Re: subscripting Python 3 dicts/getting the only value in a Python 3 dict Marko Rauhamaa <marko@pacujo.net> - 2016-01-12 21:42 +0200
Re: subscripting Python 3 dicts/getting the only value in a Python 3 dict Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-01-12 22:18 +0200
Re: subscripting Python 3 dicts/getting the only value in a Python 3 dict Peter Otten <__peter__@web.de> - 2016-01-12 19:09 +0100
Re: subscripting Python 3 dicts/getting the only value in a Python 3 dict Bernardo Sulzbach <mafagafogigante@gmail.com> - 2016-01-12 16:48 -0200
Re: subscripting Python 3 dicts/getting the only value in a Python 3 dict Peter Otten <__peter__@web.de> - 2016-01-12 19:59 +0100
Re: subscripting Python 3 dicts/getting the only value in a Python 3 dict Bernardo Sulzbach <mafagafogigante@gmail.com> - 2016-01-12 17:12 -0200
Re: subscripting Python 3 dicts/getting the only value in a Python 3 dict Steven D'Aprano <steve@pearwood.info> - 2016-01-13 12:29 +1100
Re: subscripting Python 3 dicts/getting the only value in a Python 3 dict Bernardo Sulzbach <mafagafogigante@gmail.com> - 2016-01-13 13:53 -0200
Re: subscripting Python 3 dicts/getting the only value in a Python 3 dict Steven D'Aprano <steve@pearwood.info> - 2016-01-13 12:23 +1100
Re: subscripting Python 3 dicts/getting the only value in a Python 3 dict Grant Edwards <invalid@invalid.invalid> - 2016-01-13 15:58 +0000
csiph-web