Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #83120
| Path | csiph.com!usenet.pasdenom.info!news.franciliens.net!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'english,': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:files': 0.09; 'subject:How': 0.10; 'jan': 0.12; 'language.': 0.14; '"is': 0.16; 'ascii,': 0.16; 'modul': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'restricting': 0.16; 'sensitivity.': 0.16; 'subject:remove': 0.16; 'unicode.': 0.16; 'unicode?': 0.16; 'sat,': 0.16; 'language': 0.16; 'wrote:': 0.18; 'example': 0.22; 'header:User-Agent:1': 0.23; 'instance,': 0.24; 'unicode': 0.24; 'fine': 0.24; 'handling': 0.26; 'mention': 0.26; 'subject:/': 0.26; 'skip:" 20': 0.27; 'header:X-Complaints-To:1': 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; 'cases': 0.33; "i'd": 0.34; 'could': 0.34; "can't": 0.35; 'possible.': 0.35; 'equal': 0.35; 'no,': 0.35; 'but': 0.35; 'really': 0.36; 'next': 0.36; 'easily': 0.37; 'generic': 0.38; 'tools,': 0.38; 'handle': 0.38; 'to:addr:python-list': 0.38; 'rather': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'most': 0.60; 'simply': 0.61; "you're": 0.61; 'our': 0.64; 'more': 0.64; 'different': 0.65; '2015': 0.84; 'flexibility,': 0.84; 'safer,': 0.84; 'received:89': 0.85 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
| Subject | Re: How do I remove/unlink wildcarded files |
| Date | Fri, 02 Jan 2015 15:18:45 +0000 |
| 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; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Gmane-NNTP-Posting-Host | host-89-240-164-44.as13285.net |
| User-Agent | Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 |
| In-Reply-To | <CAPTjJmoG0ZZSeeRegq3EDFRLpG1OQM_jGRO8ybiPO91=oYwVxw@mail.gmail.com> |
| 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.17327.1420211942.18130.python-list@python.org> (permalink) |
| Lines | 31 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1420211942 news.xs4all.nl 2881 [2001:888:2000:d::a6]:49324 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:83120 |
Show key headers only | View raw
On 02/01/2015 14:01, 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. > > ChrisA > Did you have to mention unicode? Next thing you know it'll be "Is it a bird, is it a plane, no, it's our resident unicode expert!!!" :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: How do I remove/unlink wildcarded files Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-01-02 15:18 +0000
csiph-web