Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!news.wiretrip.org!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; '*not*': 0.05; 'something,': 0.07; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'received:gator410.hostgator.com': 0.09; '~ethan~': 0.09; 'am,': 0.14; 'wrote:': 0.14; '(otherwise': 0.16; '(until': 0.16; 'it).': 0.16; 'lucky,': 0.16; 'subject:list': 0.22; 'header:In-Reply- To:1': 0.22; 'thu,': 0.22; 'chris': 0.27; 'lists': 0.28; 'forgot': 0.29; 'list': 0.30; 'do.': 0.31; '"real': 0.31; 'exist.': 0.31; 'all,': 0.31; 'to:addr:python-list': 0.32; 'another': 0.32; 'store': 0.32; 'done,': 0.33; 'reference': 0.34; 'header:User- Agent:1': 0.35; 'put': 0.35; 'items.': 0.35; 'realize': 0.39; 'to:addr:python.org': 0.39; 'empty': 0.40; 'header:Received:5': 0.40; '2011': 0.62; 'received:hostgator.com': 0.64; 'yourself': 0.66; 'home': 0.67; 'received:websitewelcome.com': 0.71; '"going': 0.84; 'ian,': 0.84; 'scenario': 0.91; 'shopping': 0.92 Date: Thu, 12 May 2011 07:02:37 -0700 From: Ethan Furman User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: python-list@python.org Subject: Re: checking if a list is empty References: <9hYwp.5805$xo2.3333@newsfe07.iad> <4dc4b351$0$29991$c3e8da3$5496439d@news.astraweb.com> <4dca90c1$0$29980$c3e8da3$5496439d@news.astraweb.com> <4DCAF95B.60307@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator410.hostgator.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stoneleaf.us X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 18 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1305209022 news.xs4all.nl 81481 [::ffff:82.94.164.166]:59307 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5237 Chris Angelico wrote: > On Thu, May 12, 2011 at 7:02 AM, Ian wrote: >> In the "real world" lists of zero items do not exist. >> You don't go shopping with a shopping list of zero items. > > Actually, yes you do. You maintain your shopping list between trips; > whenever you need something, you put it on the list immediately. Then > when you go shopping, you just take the list with you (if you're > lucky, you don't need to move or copy it at all, you just get another > reference to it). Once you're done, you empty the list - you now have > a shopping list with zero items (until you get home and realize you > forgot something). Um -- you contradicted Ian, then contradicted yourself -- according to your scenario your shopping list is *not* empty when you go to the store (otherwise known as "going shopping" ;). ~Ethan~