Path: csiph.com!usenet.pasdenom.info!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!ecngs!feeder2.ecngs.de!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3a.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: UNSURE 0.318 X-Spam-Level: *** X-Spam-Evidence: '*H*': 0.45; '*S*': 0.09; 'cc:addr:python-list': 0.10; 'python': 0.11; 'bugs.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'such,': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.21; 'cc:addr:python.org': 0.21; '2015': 0.23; "haven't": 0.24; "i've": 0.24; 'header:In-Reply-To:1': 0.24; 'switch': 0.27; 'message-id:@mail.gmail.com': 0.28; 'regular': 0.29; 'behaviour': 0.29; 'windows,': 0.29; "can't": 0.32; 'aside': 0.32; 'skip:/ 20': 0.33; 'received:google.com': 0.34; '(and': 0.36; 'heard': 0.36; 'subject:: ': 0.37; 'difference': 0.38; 'systems,': 0.38; 'pm,': 0.39; 'why': 0.40; 'your': 0.60; 'here.': 0.61; 'more': 0.62; 'safety': 0.66; 'situation': 0.67; 'apart': 0.70; 'benefit': 0.70; 'power': 0.72; 'actually,': 0.84; 'announces': 0.84; 'chrisa': 0.84; 'nuclear': 0.84; 'otten': 0.84; 'to:none': 0.90; 'ages': 0.91; 'plant': 0.91; 'improvement': 0.93 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:cc :content-type; bh=R/E3hI41P3/nxwrQb6a/ZGTXVkpvBrIEmo+pB3kOit0=; b=0wnFXmRYqMwiMYtNaQ/QXANmHrvd8WYg66Nntf1DaqJ9Gnb24JWjYsUTgML96rg3Wl 6Tv4rEIn3ZDeO9p+/+oebQpjKgSzgtGJvRs9AZ3F7TBHHeM1UX/QsEBz0w8j2cG0D7rj oO9BhzaZMkdFPjdvkUOYuPkhFmIc28BvK04UIBC2XQ20ZXchlcsfkU9QoUicaoECg5Bb AwTB3+UncFXdjbofVBv3B9Ov8LUUEmC3bpf3AS9oxpd2SgD7hSMHlaZJ2IsqqT0IHwuH 2Ar/W7mNlNcbX7ayPxVXxDZ5cWnJ1YoTU+NEAkWIUaZwpX1oAyKwTnIawjwIR47m9PRG c3pA== MIME-Version: 1.0 X-Received: by 10.107.134.153 with SMTP id q25mr14201457ioi.27.1433679234141; Sun, 07 Jun 2015 05:13:54 -0700 (PDT) In-Reply-To: References: <87y4k2hyvf.fsf@Equus.decebal.nl> <87bnguhbec.fsf@Equus.decebal.nl> <874mmlqhul.fsf@Equus.decebal.nl> <87sia4ox8h.fsf@Equus.decebal.nl> Date: Sun, 7 Jun 2015 22:13:54 +1000 Subject: Re: Find in ipython3 From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-Mailman-Approved-At: Sun, 07 Jun 2015 15:48:46 +0200 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1433684927 news.xs4all.nl 2914 [2001:888:2000:d::a6]:53937 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:92253 On Sun, Jun 7, 2015 at 8:27 PM, Peter Otten <__peter__@web.de> wrote: > Just wait for Python 3.5. The switch from os.listdir() to the (new) > os.scandir() in the implementation of os.walk() is likely to improve the > situation Why wait? I've been using 3.5 for ages (and actually, my /usr/local/bin/python3 now announces itself as 3.6), and the betas have been available with all the regular installers. Python betas are pretty stable, and apart from a few glitches with the installers on Windows, I haven't heard any showstopper bugs. Aside from not depending on them for your nuclear power plant safety systems, there's not a lot that the betas can't be used for. Mind you, a lot of the benefit of os.scandir() comes from its behaviour across network mounts and such, which is why you're seeing no more than about a 2:1 difference here. From what I gather, the improvement across network can be simply amazing (because of the way os.listdir has to stat everything separately). ChrisA