Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Michael Selik Newsgroups: comp.lang.python Subject: Re: Proposal: named return values through dict initialization and unpacking Date: Tue, 21 Jun 2016 18:08:58 +0000 Lines: 17 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de BWeJLMIB01RLKo9Ln3j+1w6pv1EsYtkFY2Lnjon4lfMg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '21,': 0.07; 'threads.': 0.09; 'url:github': 0.09; 'thread': 0.10; "hasn't": 0.15; '(last': 0.16; 'email addr:udel.edu>': 0.16; 'email name:<tjreedy': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'reedy': 0.16; 'rejected.': 0.16; 'subject:values': 0.16; 'unpacking.': 0.16; 'wrote:': 0.16; 'case.': 0.18; '>': 0.18; 'to:2**1': 0.21; 'subject:skip:i 10': 0.22; 'am,': 0.23; 'wrote': 0.23; 'header:In- Reply-To:1': 0.24; 'discussion': 0.24; 'module': 0.25; 'message- id:@mail.gmail.com': 0.27; 'idea': 0.28; 'dictionary': 0.29; 'pep': 0.29; 'received:209.85.220.174': 0.29; "i'd": 0.31; 'related': 0.32; 'maybe': 0.33; 'run': 0.33; 'tue,': 0.34; 'handle': 0.34; 'received:google.com': 0.35; 'community': 0.36; 'but': 0.36; 'too': 0.36; 'there': 0.36; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'thought': 0.37; 'seem': 0.37; 'received:209': 0.38; 'received:209.85.220': 0.38; 'does': 0.39; 'to:addr:python.org': 0.40; 'python-list': 0.66; 'freund': 0.84; 'worthy': 0.84; 'subject:Proposal': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=k7qSX7uHzNb4xq7oCsVZECOekGHjtaniAQdWEbe+/a4=; b=hZB6AaQB+DIl6QIbArKXXaeXbHDpN1jFkpx5Mxfja5nzs8iasoDuIDMJqJmhUSV8yw 1xS+wOR1RJ+Q0boeAmFeGwxE+J5medGOHCEJVs+W7WHHRJSA0IyE9gmRFhaOeQvT4Deu A0J559uhHg0s4NlUSoxci5U/jQFnnFNL3hNYh5e5pSHocFwj8got/ef1Vqspv6a1fcoo Oa4bNOgrSKVh6P5KhtzVPWHkHFUed9ZEo3ieUUkcY/QbHIsLttCnS1uTnlI2dAh6yo75 NynyYVzinIRQvq9tgjQwHU1hBW4vRKn6WxHXBrDbGAgQNdDjW+cg5MMc5CRjFstJz0LM ujbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=k7qSX7uHzNb4xq7oCsVZECOekGHjtaniAQdWEbe+/a4=; b=EyPcpRU9NiVgJz8U3x6iG3/Vo/L7YnFoMqUFTE4FA5+8P3McUBCycGHe5rbEonyzA3 4tq+Feyrt/IGevgQaZ/WogyHguhdajLlx1HuJHHPbZqGIZkOZ6B+CaFKrqH/wX2kTeQ9 jYHeKLoZtlWXPur7WR7h5866S1GCkEvDYfseuUxJS/whDMHBuJrXFZ9tMpzow8SiokCc qshcF2LfUxGrAufOdDfglL26hcWKCUT7LEvABW+5QvyoIBO8U0IUvYaQLqamcKxwPWBe HVz6CBq9lO15Zj50QwwCoq4ks7WvtVqGwe2xogQIvyL4Uq/btHHRJCmktQXeu9ugSfMx cVUw== X-Gm-Message-State: ALyK8tLfu5IAZpjxBSsLiWklQwrXizZfX3xGTh1DpC7FTm52iM5F/LykjZELs0HMxUQTDQ1v3u/nL5qwHU7Tqw== X-Received: by 10.233.237.129 with SMTP id c123mr31299062qkg.136.1466532547743; Tue, 21 Jun 2016 11:09:07 -0700 (PDT) In-Reply-To: X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: Xref: csiph.com comp.lang.python:110257 On Tue, Jun 21, 2016, 10:14 AM Terry Reedy wrote: > On 6/21/2016 3:34 AM, Ari Freund via Python-list wrote: > > I'd like to run this idea by the community to see if it's PEP worthy and > > hasn't been already rejected. > > > There was a recent (last couple of months?) discussion on python-ideas > about dictionary unpacking. It does not seem too practical. But maybe > you can find the thread > There were a few related threads. I wrote a module to handle what I thought was the most important use case. https://github.com/selik/destructure >