Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.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.031 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'subject:How': 0.09; 'subject:files': 0.09; '"python': 0.16; 'anymore': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'googling': 0.16; 'subject: \n ': 0.16; 'subject:non': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'question.': 0.20; 'header:In-Reply- To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'subject:list': 0.28; 'yields': 0.29; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'list': 0.35; 'nov': 0.35; 'received:209.85': 0.35; 'beyond': 0.37; 'level': 0.37; 'received:209': 0.37; 'well.': 0.37; 'subject:: ': 0.38; 'mean': 0.38; 'some': 0.38; 'sure': 0.38; 'to:addr:python.org': 0.39; 'google': 0.39; 'subject:-': 0.40; 'header:Received:5': 0.40; 'your': 0.60; 'information': 0.63; 'friend': 0.81; 'subject:get': 0.81 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=0GeC4yy4691WoeSfs3K1U/oL8ZkspywzazLwrjStSv0=; b=XTTlQB8xhbU1J0PZj5SjXmLfYSbif/Gn8e0FxJPA9IXd+d1BkCUlMSz8mYYjX4CiDh NF5Lqk3gcHt/lGSDP0PPzRYOH6fzzEkyEYj8mb9r0aGyzn+jZxTRe5IBhNEX4He7nlj2 K8CLQt6UNmfRDaSa9v47PxBcS8C0/DKBZUF6wZ9yEQ9r3rtnADuP7hS+ReIOiIEH3Qwo pSlKLps/wxaHG5PeHh0mnhIJKZx7SWLB7USd0ZGZlwZAParYG1mqVl3x56CTAsULPfNL TDkU4wfKBWzntODl9yfhJBA7PHpGUOXY2uHss6M7O9Ps6tKGU/gLCDzSG6MmBrqKVLNz Rrtg== MIME-Version: 1.0 In-Reply-To: References: <31a0765f-c366-4f19-8d6c-bc95e0e51265@googlegroups.com> Date: Wed, 14 Nov 2012 07:53:21 +1100 Subject: Re: How to only get a list of the names of the non-directory files in current directory ('.')? 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: 8 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1352840005 news.xs4all.nl 6862 [2001:888:2000:d::a6]:40316 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:33263 On Wed, Nov 14, 2012 at 5:16 AM, emile wrote: > BTW, googling for "python how to get a list of names of everything in the > current directory" yields some good information as well. Google is your > friend for this level of question. Not sure anymore beyond that... It yields it? You mean Google is an iterator?