Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed5.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'filenames': 0.07; 'notation': 0.09; 'terry': 0.09; 'to:addr:comp.lang.python': 0.09; 'tuple': 0.09; 'yeah,': 0.09; 'cc:addr:python-list': 0.10; '2.7': 0.13; 'reedy': 0.16; 'wrote:': 0.17; 'names.': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'thursday,': 0.30; 'file': 0.32; 'received:google.com': 0.34; 'received:209.85': 0.35; 'rather': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'skip:" 10': 0.40; 'august': 0.66 Newsgroups: comp.lang.python Date: Thu, 23 Aug 2012 12:06:29 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.114.87.114; posting-account=dAOV_goAAABEUkqpkMcBZ68KkIzfCnsO References: <6b0299df-bc24-406b-8d69-489e990d8e4f@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 66.114.87.114 MIME-Version: 1.0 Subject: Re: Unittest - testing for filenames and filesize From: Roy Smith To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org 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: , Message-ID: Lines: 6 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1345748791 news.xs4all.nl 6910 [2001:888:2000:d::a6]:39055 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:27760 On Thursday, August 23, 2012 1:29:19 PM UTC-4, Terry Reedy wrote: > One can start with a set rather than tuple of file names. > filenames = {"this.txt", "that.txt", "the_other.txt"} Yeah, that's even cleaner. Just be aware, the set notation above is only available in (IIRC), 2.7 or above.