Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #83118
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!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.027 |
| X-Spam-Evidence | '*H*': 0.95; '*S*': 0.00; 'utf-8': 0.07; 'english,': 0.09; 'solution,': 0.09; 'subject:files': 0.09; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; 'jan': 0.12; 'ascii,': 0.16; 'chris,': 0.16; 'modul': 0.16; 'restricting': 0.16; 'sensitivity.': 0.16; 'subject:remove': 0.16; 'unicode.': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'example': 0.22; 'cc:addr:python.org': 0.22; 'header:User-Agent:1': 0.23; 'instance,': 0.24; 'fine': 0.24; 'cc:2**0': 0.24; 'handling': 0.26; 'subject:/': 0.26; 'skip:" 20': 0.27; 'header:In-Reply- To:1': 0.27; 'chris': 0.29; 'am,': 0.29; "i'm": 0.30; 'gives': 0.31; 'file': 0.32; 'another': 0.32; 'cases': 0.33; "i'd": 0.34; 'could': 0.34; 'problem': 0.35; "can't": 0.35; 'possible.': 0.35; 'equal': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; "didn't": 0.36; 'possible': 0.36; 'easily': 0.37; 'generic': 0.38; 'tools,': 0.38; 'handle': 0.38; 'rather': 0.38; 'sure': 0.39; 'solve': 0.60; 'most': 0.60; 'from:charset:utf-8': 0.61; 'simply': 0.61; "you're": 0.61; 'content-disposition:inline': 0.62; 'choose': 0.64; 'more': 0.64; 'different': 0.65; 'to:addr:gmail.com': 0.65; 'here': 0.66; '2015': 0.84; 'flexibility,': 0.84; 'safer,': 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=nhYKqzmq9Sv87kuCJqmFpuLMmYIjJKp18EuNCMJyLj4=; b=mFLuhEtI4YHcIVd9skOGExte77rrB0ZcmPAOEDU8e+fu+OKbrzHNZSND94eBMlZ7li HsxjXCiFxEAit8S0idanky7b6X+poFyKIHYOhnHIsyH2KjkmAeBTGCzT8AD+yJH3KakH ApAh/TYmQE9ny8hdI57f3hdWzjFPNMaKYC5QKN5BTYb/gAL7OSe9cDSpUAsPgi7vcH7j 5LTBR5WWV7mELvjb9sM758K1MVyumpzvns4TYIuH+oPH7DKS/YPdv3fxuEchtqmv0YkI 1Yerul6vrRjV2/nQW/BxWjAl8rQLPPohub6KW357WrHLp2GNYffKVe0TUd01q3R8nlzw BrWQ== |
| X-Received | by 10.180.211.2 with SMTP id my2mr131882081wic.3.1420207811545; Fri, 02 Jan 2015 06:10:11 -0800 (PST) |
| Date | Fri, 2 Jan 2015 15:10:09 +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> <20150102135132.GE24572@arxnet.hu> <CAPTjJmoG0ZZSeeRegq3EDFRLpG1OQM_jGRO8ybiPO91=oYwVxw@mail.gmail.com> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Disposition | inline |
| Content-Transfer-Encoding | 8bit |
| In-Reply-To | <CAPTjJmoG0ZZSeeRegq3EDFRLpG1OQM_jGRO8ybiPO91=oYwVxw@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.17325.1420207818.18130.python-list@python.org> (permalink) |
| Lines | 33 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1420207818 news.xs4all.nl 2971 [2001:888:2000:d::a6]:57954 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:83118 |
Show key headers only | View raw
Hi Chris, On Sat, Jan 03, 2015 at 01:01:31AM +1100, Chris Angelico wrote: > On Sat, Jan 3, 2015 at 12:51 AM, Ervin Hegedüs <airween@gmail.com> wrote: > > 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? > > I'm not sure that I'd want to. Handling case insensitivity is fine > when you're restricting everything to ASCII, but it's rather harder > when you allow all of Unicode. For instance, U+0069 and U+0049 would > be considered case-insensitively equal in English, but in Turkish, > they're different letters; U+0069 upper-cases to U+0130, and U+0049 > lower-cases to U+0131. Much safer, when you're writing generic tools, > to simply require case sensitivity. And you can't easily know whether > the file system is case-sensitive, case-retaining, or case-folding; > you could easily have multiple mounts that differ, so > "/home/rosuav/foo/bar/quux" might be the same as > "/home/rosuav/FOO/bar/quux", but the other four components are all > case sensitive. Yes, it really is possible. I didn't want to solve the OP's problem - I just gave an idea. Here was another possible solution, I think the OP can choose the right one :) 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 15:10 +0100
csiph-web