Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #83118 > unrolled thread
| Started by | Ervin Hegedüs <airween@gmail.com> |
|---|---|
| First post | 2015-01-02 15:10 +0100 |
| Last post | 2015-01-02 15:10 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: How do I remove/unlink wildcarded files Ervin Hegedüs <airween@gmail.com> - 2015-01-02 15:10 +0100
| From | Ervin Hegedüs <airween@gmail.com> |
|---|---|
| Date | 2015-01-02 15:10 +0100 |
| Subject | Re: How do I remove/unlink wildcarded files |
| Message-ID | <mailman.17325.1420207818.18130.python-list@python.org> |
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 top | Article view | comp.lang.python
csiph-web