Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Ben Finney Newsgroups: comp.lang.python Subject: Re: fnmatch() vs. glob.glob() Date: Tue, 08 Mar 2016 12:16:16 +1100 Lines: 18 Message-ID: References: <14061576-1c44-49bb-a27b-279e43258f06@googlegroups.com> <7475bb64-b2e7-45ff-a94e-dbc62f658fab@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de MnSDkPkQ9KbLNn6eQ8LoOApCrOHLmjl8hm1Z47KZHg6A== Cancel-Lock: sha1:T/MqzrAnYTwsjQ/SV126QvL24Cs= Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.083 X-Spam-Evidence: '*H*': 0.84; '*S*': 0.01; 'bold': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:()': 0.09; 'fuzzy': 0.16; 'quoted': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'beginner': 0.18; 'module': 0.25; 'header :User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'question': 0.27; 'behaviour': 0.29; 'topic': 0.32; 'file': 0.34; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'two': 0.37; 'being': 0.37; 'received:org': 0.37; 'thank': 0.38; 'to:addr:python.org': 0.40; 'questions': 0.40; 'your': 0.60; 'son': 0.61; "you'll": 0.61; 'here.': 0.62; 'is.': 0.63; 'more': 0.63; 'matthew': 0.66; 'subject:. ': 0.67; '_o__)': 0.84; 'received:125': 0.84; 'sublime': 0.84; 'worthy': 0.84; 'directories,': 0.91; 'father': 0.91 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: jigong.madmonks.org X-Public-Key-ID: 0xAC128405 X-Public-Key-Fingerprint: 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-pubkey.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:104293 Jinghui Niu writes: > May I take this opportunity to ask a bold question for a beginner No problem, your questions are on topic here. Thank you for being civil. > if I want to mimic Sublime Text's fuzzy search for a file search in > given directories, which module of these two would be more suitable? You'll need to describe the requirements, I don't know exactly what that behaviour is. -- \ “He that loveth father or mother more than me is not worthy of | `\ me: and he that loveth son or daughter more than me is not | _o__) worthy of me.” —Jesus, as quoted in Matthew 10:37 | Ben Finney