Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'mrab': 0.05; 'made.': 0.07; 'compile-time': 0.09; 'received:internal': 0.09; 'subject:while': 0.09; 'template': 0.14; 'immutable,': 0.16; 'literals': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:messagingengine.com': 0.16; 'subject:recursion': 0.16; 'tuple': 0.16; 'wrote:': 0.18; 'discussion': 0.18; 'wed,': 0.18; 'items.': 0.19; 'copied': 0.24; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'object.': 0.31; "we're": 0.32; 'sense': 0.34; 'received:66': 0.35; 'really': 0.36; 'list': 0.37; 'received:10': 0.37; 'to:addr:python-list': 0.38; 'list,': 0.38; 'itself': 0.39; 'to:addr:python.org': 0.39; 'from:no real name:2**0': 0.61; 'header:Message-Id:1': 0.63; 'here': 0.66; 'hey,': 0.75; 'again?': 0.84; '2013,': 0.91 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= message-id:from:to:mime-version:content-transfer-encoding :content-type:in-reply-to:references:subject:date; s=mesmtp; bh= ZqDFSME5FLmNGZlYDIdjjtyO3TA=; b=uVHG3lktE/JwfDPIhMctGewLBFA80oOE isHiisI1bHkS1kocoRn8ooOVowTMDZ6Eyb1TCnxeUYj7ORQCf7wdq3yJ6hCVBlXE P8UE1MAAs/i0Uxu0Gqm7+NbAuvpd4Nz1gNHFTO3aXapNtdqUoG6QTxo6bvAI/ZIo xHZPhjbctEk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=smtpout; bh=ZqDFSME5FLmNGZlYDIdjjtyO3TA=; b=Ysj vYiVO7q7NSQPEFkxD1AR/DtNTEvZ6yFDGlh7ffRiPYiWSqIRjc11bncEI58oPt6g 9ge9dhjTHgVOYPnKLCtDvrCFkq1QopaQKvCbqxJbYzOr0v2Ke0JSV151LxBalVap RX/IN0rRwEFD2iXUs7zyI8m9MhENhPzDLwGDbWAk= X-Sasl-Enc: agSZdyB89xCCrHYnEwMWxVxD2lr8jbE5WnAKwRaDIwta 1380809664 From: random832@fastmail.us To: python-list@python.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-ce174988 In-Reply-To: <524CCC8D.6020700@mrabarnett.plus.com> References: <87had0axxy.fsf@dpt-info.u-strasbg.fr> <524cc73a$0$29984$c3e8da3$5496439d@news.astraweb.com> <524CCC8D.6020700@mrabarnett.plus.com> Subject: Re: Tail recursion to while iteration in 2 easy steps Date: Thu, 03 Oct 2013 10:14:24 -0400 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1380809666 news.xs4all.nl 15995 [2001:888:2000:d::a6]:54467 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:55412 On Wed, Oct 2, 2013, at 21:46, MRAB wrote: > > The difference is that a tuple can be reused, so it makes sense for the > > comiler to produce it as a const. (Much like the interning of small > > integers) The list, however, would always have to be copied from the > > compile-time object. So that object itself would be a phantom, used > > only as the template with which the list is to be made. > > > The key point here is that the tuple is immutable, including its items. Hey, while we're on the subject, can we talk about frozen(set|dict) literals again? I really don't understand why this discussion fizzles out whenever it's brought up on python-ideas.