Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1.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.063 X-Spam-Evidence: '*H*': 0.87; '*S*': 0.00; 'plenty': 0.07; 'assuming': 0.09; 'cards.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'peek': 0.16; 'roy': 0.16; 'wrote:': 0.18; 'appears': 0.22; 'code,': 0.22; 'aug': 0.22; 'earlier': 0.24; 'initial': 0.24; '(or': 0.24; 'header:In-Reply-To:1': 0.27; 'correct': 0.29; 'am,': 0.29; 'subject:list': 0.30; 'message- id:@mail.gmail.com': 0.30; "d'aprano": 0.31; 'steven': 0.31; 'comment': 0.34; 'subject:from': 0.34; 'equal': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; "he's": 0.36; 'subject:?': 0.36; 'should': 0.36; 'being': 0.38; 'to:addr:python- list': 0.38; 'to:addr:python.org': 0.39; 'hope': 0.61; 'pick': 0.64; 'cards': 0.65; 'worth': 0.66; 'smith': 0.68; 'article': 0.77; 'played': 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:date:message-id:subject:from:to :content-type; bh=Hs3EP/HLMVtssRAbylVl/dVF8xQ76RqyCFAGAjcVdsw=; b=d064XtrtR3kiS8gzSUv231zr0kUXNfB5Pu6vkrMi+XWy+8hKn+GLTvBCUYV6W8UsY/ AM+v9kn79xvshidlySIvTXexCSeRZ56SndW4EpyBq6LdU4OJCydPC1lduHQb4UCC2bdH zHZH5p9ldCO8V8WT7VPaD2/Fn5Eh1Pdwgk9kAVXwBilZF9wtINmLxUcNlswPuP1j4Vb5 xCvduTftHhpDY0LEG0qS3bxuMm1jyo6tcWykPjfJPj9SK2SRt6U0OJuFphDbUcvli3Y8 Jwcsw5cVfR1NtyFyBi9w/p033eSuyfYz7rtYnAj3p7RMNa3Zpgh1XJ/7S3cNHLXjZonE /PKQ== MIME-Version: 1.0 X-Received: by 10.58.223.238 with SMTP id qx14mr3853330vec.98.1375572926338; Sat, 03 Aug 2013 16:35:26 -0700 (PDT) In-Reply-To: References: <6c0bdea5-23bd-4854-8016-4bf0af3b7d0e@googlegroups.com> <51fd8635$0$30000$c3e8da3$5496439d@news.astraweb.com> Date: Sun, 4 Aug 2013 00:35:26 +0100 Subject: Re: Removing matching items from a list? From: Chris Angelico To: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1375572935 news.xs4all.nl 15933 [2001:888:2000:d::a6]:51607 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:51898 On Sun, Aug 4, 2013 at 12:06 AM, Roy Smith wrote: > In article <51fd8635$0$30000$c3e8da3$5496439d@news.astraweb.com>, > Steven D'Aprano wrote: > >> 2) Then go through those initial letters, and pick out the ones equal to >> 4 (or should that be "four or more"?). > > Assuming my earlier hunch is correct about these being cards in a deck, > and the a's being aces, I would hope it's not "four or more". See my > earlier comment about saloons and gunshot wounds. Unless he's working with multiple decks. There are plenty of games played with a double deck. But we did get a peek at his creation code, which appears to make but a single deck's worth of cards. ChrisA