Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #83116
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <airween@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.020 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'utf-8': 0.07; 'subject:files': 0.09; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; 'jan': 0.12; 'missed': 0.12; '"."': 0.16; ':))': 0.16; 'modul': 0.16; 'simpler,': 0.16; 'subject:remove': 0.16; ':-)': 0.16; 'wrote:': 0.18; 'module': 0.19; 'example': 0.22; 'cc:addr:python.org': 0.22; 'header:User-Agent:1': 0.23; 'module,': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; "doesn't": 0.30; 'gives': 0.31; 'obscure': 0.31; 'file': 0.32; 'checked': 0.32; 'another': 0.32; 'cases': 0.33; 'fri,': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'hi,': 0.36; 'handle': 0.38; 'pm,': 0.38; 'anything': 0.39; 'delete': 0.39; 'most': 0.60; 'from:charset:utf-8': 0.61; "you're": 0.61; 'content- disposition:inline': 0.62; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'sound': 0.68; '2015': 0.84; 'flexibility,': 0.84; 'received:hu': 0.93 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=whd0V75U1IjEXYKktQWrxCH5XlVapnXtwbogPelNLTU=; b=F6IEVtjbvXm9IZBLA0qaY7eRkPTiPHiO3jEBVMJcK9H0zGV4DD0AULDBJSBMLS6LZH ADrg2isktNBF5DSkF7KaaLe5cJPrluQ3svMHSMw5qtAaIo6I1A5Ykuv9h4/mSDCoKBGT SF7gJhROt/ENSSn9gHA/Br+XN1HQhxW15I6papruO/wh9SD6lErSt4dQLQ/UDHb6V32d M4lq13BCrb31Ty90BgvB6D6Cs/7ZMKgxLyzNn9T+DIjvZgtnO2daADPtKgaJKjiVoY1Z Rc3YdqKNca0S8SIudmHEC7biBuryYa9E8w2zgPcGb2TgP6V2sRa1xPvfZhBSxVMKBvXz Q9EA== |
| X-Received | by 10.194.59.33 with SMTP id w1mr151501733wjq.123.1420206695149; Fri, 02 Jan 2015 05:51:35 -0800 (PST) |
| Date | Fri, 2 Jan 2015 14:51:32 +0100 |
| From | Ervin Hegedüs <airween@gmail.com> |
| To | Chris Angelico <rosuav@gmail.com> |
| Subject | Re: How do I remove/unlink wildcarded files |
| References | <20150102090051.GC22372@arxnet.hu> <20150102102153.GA89926@cskk.homeip.net> <20150102053552.6ed449b8@bigbox.christie.dr> <20150102123604.GB24295@arxnet.hu> <CAPTjJmoHV5OxZYfnDaYjrq-SBDdkWPf1uAhtgd47aioK0FoWFQ@mail.gmail.com> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Disposition | inline |
| Content-Transfer-Encoding | 8bit |
| In-Reply-To | <CAPTjJmoHV5OxZYfnDaYjrq-SBDdkWPf1uAhtgd47aioK0FoWFQ@mail.gmail.com> |
| User-Agent | Mutt/1.5.21 (2010-09-15) |
| Cc | "python-list@python.org" <python-list@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.17323.1420206697.18130.python-list@python.org> (permalink) |
| Lines | 28 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1420206697 news.xs4all.nl 2890 [2001:888:2000:d::a6]:52486 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:83116 |
Show key headers only | View raw
Hi, On Fri, Jan 02, 2015 at 11:59:17PM +1100, Chris Angelico wrote: > On Fri, Jan 2, 2015 at 11:36 PM, Ervin Hegedüs <airween@gmail.com> wrote: > >> And worse, the given re would delete a file named "uni" which doesn't > >> sound ANYTHING like what the OP wanted :-) > > > > yes, you're right - I've missed out a "." before the "*". :) > > Another reason to avoid regexps when you don't actually need them. > Globs are simpler, and have fewer obscure failure modes. it may be at the concrete example in OP is better the glob - but I think in most cases the re modul gives more flexibility, I mean the glob modul can handle the upper/lower chars? (Anyway, now I checked the fnmatch module, which uses re module :)) Cheers: a. -- I � UTF-8
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: How do I remove/unlink wildcarded files Ervin Hegedüs <airween@gmail.com> - 2015-01-02 14:51 +0100
csiph-web