Path: csiph.com!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:00:19 +1100 Lines: 15 Message-ID: References: <14061576-1c44-49bb-a27b-279e43258f06@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de NvXWksoYV9p0jm8vZG/ibgYkt5TSlr/yiQRtuRnooi6A== Cancel-Lock: sha1:JPim4un9YXLY3LCs3xFVZHsrY0s= Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.025 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'learner': 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; ':-)': 0.12; 'things.': 0.15; '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; 'library': 0.20; 'header:User-Agent:1': 0.26; "doesn't": 0.26; 'header:X -Complaints-To:1': 0.26; 'turns': 0.27; 'somebody': 0.30; 'useful': 0.33; 'on,': 0.35; 'reply.': 0.35; 'to:addr:python- list': 0.36; 'subject:: ': 0.37; 'say': 0.37; 'received:org': 0.37; 'difference': 0.38; 'thank': 0.38; 'to:addr:python.org': 0.40; 'care': 0.60; 'your': 0.60; 'skip:u 10': 0.61; 'different': 0.63; 'subject:. ': 0.67; '_o__)': 0.84; 'educational.': 0.84; 'received:125': 0.84; 'television': 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:104290 Jinghui Niu writes: > Thank you for your reply. So if for a beginner learner who doesn't > care so much about Unix-compliant, which one is a better choice for > learning purpose? Learn to care about the difference :-) They are both useful and both do different things. -- \ “I must say that I find television very educational. The minute | `\ somebody turns it on, I go to the library and read a book.” | _o__) —Groucho Marx | Ben Finney