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


Groups > comp.lang.python > #105402

Re: Convert list to another form but providing same information

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Ian Kelly <ian.g.kelly@gmail.com>
Newsgroups comp.lang.python
Subject Re: Convert list to another form but providing same information
Date Mon, 21 Mar 2016 14:12:46 -0600
Lines 5
Message-ID <mailman.461.1458591209.12893.python-list@python.org> (permalink)
References <1010f2cb-21f9-495b-8af4-03ad209b4c1e@googlegroups.com> <87bn67oayt.fsf@bsb.me.uk>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de 0M5W76X7xa81vdy/EAjHrAJVpTtfJ96G9YPzPsL6Yy7g==
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.015
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; '21,': 0.07; 'subject:form': 0.07; '(actually': 0.09; 'subject:same': 0.09; '2016': 0.16; 'lambda': 0.16; 'received:209.85.213.176': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:Convert': 0.16; 'url:faq': 0.16; 'wrote:': 0.16; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'subject:list': 0.26; 'message- id:@mail.gmail.com': 0.27; "can't": 0.32; 'statement': 0.32; 'url:python': 0.33; 'received:google.com': 0.35; 'url:org': 0.36; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209.85.213': 0.37; 'wanted': 0.37; 'received:209': 0.38; 'why': 0.39; 'to:addr:python.org': 0.40; 'url:3': 0.60; 'here:': 0.63; 'mar': 0.65; 'experts': 0.70; 'to:name:python': 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; bh=XE2JJqMYaDixo9kruy9AhXTg2WB+qw7/ZneH9+39HA8=; b=MxN80QkNxVSiFbizNKBUFDARF+F2AZZZDDS5j+/cECU4GqvhVmYHzjiemuoJz4a0iE CEAGBZx8DTJo0AyJEwSPvdijGjesXD+MnYUZoLOySoakbkuAAm52WfYmxt/5auVgz+rV obGDO06JyrRZNbiJmM0VRxBt/jzjFAkVtgkX1BoNIjFinSx8yZJlV3zkplCUN+CouUi2 C3wEKGVI5vt+bgwkv6rqs9x+dfumK7jyvpHWMVVHLsmfGEGtF0qxoWOt4IX8nBWym7XB l7Kv0OhDFsYtAY9EQK+F361ej2qLRILYK38nrASp4Ao5smbZEJt8nRTIEVHaBh0OSrad MBHw==
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; bh=XE2JJqMYaDixo9kruy9AhXTg2WB+qw7/ZneH9+39HA8=; b=XclihsMA1iazIAeKB1ZMJ4NRT5+DEreYJ1UlLhuESTX09+jrMowdm5L/J9WprcPxAg K3WajJFUzO4J96pc872EMppu4cW/fq/qhWPDQ77qRr0rnJvza3oHLHQzqQNxmjZsEai1 LXsBSmAOkMp32ba12Cuwabfvr+MUzzDttzi2I3F0kFKShgEMAtxnhFTEMj/cY/mBiIZF NoVKvTsDBSLBRMfwUvvD4WnjYBoyRvYAuz/tJdO9TmbcaDBH913U5VTqOEHsz6CIHaSH 10VNg0lF0Gl6ENEv3FXZ5ByM+NkfQKHdSvAfpPeSjFYWFdyx5OiiaKbsPtpgdyigja1n mRZg==
X-Gm-Message-State AD7BkJLvinIO8iCIiobGHNNQKfosEKecMN17cs0AbNnDxDWZbis1TJs11UAIQ0/jgTAthhr3cVVBqWEi9ANfrg==
X-Received by 10.50.61.177 with SMTP id q17mr14313984igr.68.1458591206346; Mon, 21 Mar 2016 13:13:26 -0700 (PDT)
In-Reply-To <87bn67oayt.fsf@bsb.me.uk>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21
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:105402

Show key headers only | View raw


On Mon, Mar 21, 2016 at 2:03 PM, Ben Bacarisse <ben.usenet@bsb.me.uk> wrote:
> For experts here: why can't I write a lambda that has a statement in it
> (actually I wanted two: lambda l, i: l[i] += 1; return l)?

https://docs.python.org/3/faq/design.html#why-can-t-lambda-expressions-contain-statements

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


Thread

Convert list to another form but providing same information Maurice <mauricioliveiraguarda@gmail.com> - 2016-03-21 11:26 -0700
  Re: Convert list to another form but providing same information Maurice <mauricioliveiraguarda@gmail.com> - 2016-03-21 11:30 -0700
    Re: Convert list to another form but providing same information Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-03-21 19:24 +0000
    Re: Convert list to another form but providing same information anantguptadbl@gmail.com - 2016-03-22 07:23 -0700
  Re: Convert list to another form but providing same information Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-03-21 19:21 +0000
  Re: Convert list to another form but providing same information Peter Otten <__peter__@web.de> - 2016-03-21 20:22 +0100
  Re: Convert list to another form but providing same information Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-03-21 20:03 +0000
    Re: Convert list to another form but providing same information Ian Kelly <ian.g.kelly@gmail.com> - 2016-03-21 14:12 -0600
      Re: Convert list to another form but providing same information Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-03-22 00:31 +0000
        Re: Convert list to another form but providing same information Chris Angelico <rosuav@gmail.com> - 2016-03-22 11:58 +1100
        Re: Convert list to another form but providing same information Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2016-03-22 15:34 +1100
    Re: Convert list to another form but providing same information Ian Kelly <ian.g.kelly@gmail.com> - 2016-03-21 14:14 -0600
  Re: Convert list to another form but providing same information Steven D'Aprano <steve@pearwood.info> - 2016-03-22 11:13 +1100
  Re: Convert list to another form but providing same information Paul Rubin <no.email@nospam.invalid> - 2016-03-21 18:35 -0700
    Re: Convert list to another form but providing same information Steven D'Aprano <steve@pearwood.info> - 2016-03-22 21:49 +1100

csiph-web