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


Groups > comp.lang.python > #51742

Re: Lambda function Turing completeness

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.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.188
X-Spam-Level *
X-Spam-Evidence '*H*': 0.68; '*S*': 0.06; 'lambda': 0.16; 'notation': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'python?': 0.22; '31,': 0.24; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'message- id:@mail.gmail.com': 0.30; '(which': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'received:google.com': 0.35; 'possible': 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'jul': 0.74; 'functions)': 0.84; 'musical': 0.84; '2013': 0.98
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=ZeuA5hhoZZgzhXgeFXN5A/GQQFdg75wZ/lzHGIeaxtY=; b=fG+roQYcXxtxBWTtEhAa/30wWu+KNfR0/yGZsZ80TJj2EQ+rjH24fD7DM+yZqAKJTU ct6u5v2nHfTcNGmPlcr0AiZDmx9YTCotxkVr2AK9J6BFcLOwz2RhkfXneWInmq3I/QJf sQmIxryPZxPOEstKVn4ifQFRThCgAnuXamFejqfNu3sGzr5clMwXI2iOgj+bfTvy/0/5 j3Mqmb7pKD9Tqib66VXiH4cfquvo5ECx8a9hQ9ssmSlYvvCYeu7/Cqv7CKTRl0WHU0km DGEKzcS9eZgJppA7uVwhyI9sTOffuHeDxy5ia5RlFaiOKTZwCeoYlGpd82GwU6CiTQmz XpfQ==
X-Received by 10.66.228.38 with SMTP id sf6mr5530911pac.21.1375376747677; Thu, 01 Aug 2013 10:05:47 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <51f9f86b$0$30000$c3e8da3$5496439d@news.astraweb.com>
References <mailman.17.1375272465.1251.python-list@python.org> <51f9f86b$0$30000$c3e8da3$5496439d@news.astraweb.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Thu, 1 Aug 2013 11:05:07 -0600
Subject Re: Lambda function Turing completeness
To Python <python-list@python.org>
Content-Type text/plain; charset=ISO-8859-1
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.81.1375376758.1251.python-list@python.org> (permalink)
Lines 11
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1375376758 news.xs4all.nl 15989 [2001:888:2000:d::a6]:38263
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:51742

Show key headers only | View raw


On Wed, Jul 31, 2013 at 11:55 PM, Steven D'Aprano
<steve+comp.lang.python@pearwood.info> wrote:
> On Wed, 31 Jul 2013 13:53:26 +0700, Musical Notation wrote:
>
>> Is it possible to write a Turing-complete lambda function (which does
>> not depend on named functions) in Python?
>
>
> lambda s: eval(s)

eval is a named function.

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


Thread

Lambda function Turing completeness Musical Notation <musicdenotation@gmail.com> - 2013-07-31 13:53 +0700
  Re: Lambda function Turing completeness Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-08-01 05:55 +0000
    Re: Lambda function Turing completeness Ian Kelly <ian.g.kelly@gmail.com> - 2013-08-01 11:05 -0600
  Re: Lambda function Turing completeness Piet van Oostrum <piet@vanoostrum.org> - 2013-08-24 19:45 -0400
    Re: Lambda function Turing completeness Piet van Oostrum <piet@vanoostrum.org> - 2013-08-24 20:30 -0400

csiph-web