[issue9584] Allow curly brace expansion

2010-12-21 Thread Mathieu Bridon
Changes by Mathieu Bridon boche...@fedoraproject.org: Removed file: http://bugs.python.org/file19451/0001-Curly-brace-expansion-in-glob.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9584

[issue9584] Allow curly brace expansion

2010-12-21 Thread Mathieu Bridon
Mathieu Bridon boche...@fedoraproject.org added the comment: Same patch, but rebased to the current trunk so it still applies. -- Added file: http://bugs.python.org/file20128/0001-Curly-brace-expansion-in-glob.patch.old ___ Python tracker rep

[issue9584] Allow curly brace expansion

2010-12-21 Thread Mathieu Bridon
Mathieu Bridon boche...@fedoraproject.org added the comment: This is the right patch, sorry for all the mail spam. :-/ -- Added file: http://bugs.python.org/file20129/0001-Curly-brace-expansion-in-glob.patch ___ Python tracker rep...@bugs.python.org

[issue9584] Allow curly brace expansion

2010-12-21 Thread Mathieu Bridon
Mathieu Bridon boche...@fedoraproject.org added the comment: Thanks for the research and the updated patch. Unfortunately as a feature request this is going to have to wait for 3.3 since we missed the pre-beta window. Ok. This is my first patch to Python, so I'm not sure what I should do

[issue9584] Allow curly braces in fnmatch

2010-08-13 Thread Mathieu Bridon
New submission from Mathieu Bridon boche...@fedoraproject.org: The attached patch allows for shell curly braces with fnmatch.filter(). This makes the following possible: import fnmatch import os for file in os.listdir('.'): ... if fnmatch.fnmatch(file, '*.{txt,csv}'): ... print

[issue9584] Allow curly braces in fnmatch

2010-08-13 Thread Mathieu Bridon
Mathieu Bridon boche...@fedoraproject.org added the comment: The attached patch allows for shell curly braces with fnmatch.filter(). Oops, I meant that it allows for curly braces in fnmatch.translate(), which makes it available in the whole fnmatch module

[issue9584] Allow curly braces in fnmatch

2010-08-14 Thread Mathieu Bridon
Mathieu Bridon boche...@fedoraproject.org added the comment: Wow, I certainly didn't expect to generate so much controversy. :-/ First of all, thanks for the comments on the patch Antoine and David. I don't get what the purpose of these two lines is. Forbid empty patterns? I copy-pasted

[issue9584] Allow curly brace expansion

2010-10-31 Thread Mathieu Bridon
Mathieu Bridon boche...@fedoraproject.org added the comment: I finally found the time to follow up on this issue, sorry for the absence of response. The thread on Python-Ideas didn't really lead to a consensus (nor did it generate a lot of discussion). Some wanted to see this in fnmatch

[issue9584] Allow curly brace expansion

2010-10-31 Thread Mathieu Bridon
Changes by Mathieu Bridon boche...@fedoraproject.org: Removed file: http://bugs.python.org/file18497/curly-fnmatch.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9584

[issue9584] Allow curly brace expansion

2011-03-04 Thread Mathieu Bridon
Mathieu Bridon boche...@fedoraproject.org added the comment: So, now that Python 3.2 was released, here is a patch rebased on top of the py3k branch. -- Added file: http://bugs.python.org/file21001/0001-Curly-brace-expansion-in-glob.patch

[issue9584] Allow curly brace expansion

2011-03-04 Thread Mathieu Bridon
Changes by Mathieu Bridon boche...@fedoraproject.org: Removed file: http://bugs.python.org/file20129/0001-Curly-brace-expansion-in-glob.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9584

[issue9584] Allow curly brace expansion

2011-03-04 Thread Mathieu Bridon
Mathieu Bridon boche...@fedoraproject.org added the comment: The sys module is imported in glob but never used. It's not related to this feature request but I saw it when implementing the patch, so here is a second patch removing the import. -- Added file: http://bugs.python.org

[issue9584] Allow curly brace expansion

2011-03-20 Thread Mathieu Bridon
Mathieu Bridon boche...@fedoraproject.org added the comment: I removed the unused import (mostly as a simple test of mercurial, it's my first commit there). Does it mean that Python development is not being done in SVN, as the documentations state it? My patches have all been based

[issue9584] Allow curly brace expansion

2011-05-08 Thread Mathieu Bridon
Mathieu Bridon boche...@fedoraproject.org added the comment: Is anybody still reading this? :-/ Could somebody commit the patch, reject it, or tell me what else I need to do? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue9584] Allow curly brace expansion

2012-11-05 Thread Mathieu Bridon
Mathieu Bridon added the comment: I have to apologize for not following up on this patch. At first I had no time to go on pushing for it, and then (after a change of job), I completely forgot about it. :( I guess rebasing the patch on the latest tip is not that useful if you already have

[issue9584] Allow curly brace expansion

2012-11-05 Thread Mathieu Bridon
Mathieu Bridon added the comment: IIUC you're implementing comma-separated lists {abc,def} and nested braces {a{b,c}d,efg} but not ranges {a..z}. Exactly. Although that's just because at the time I sent the patch, I didn't know about ranges in shells. So I just implemented the part

[issue9584] Allow curly brace expansion

2012-11-06 Thread Mathieu Bridon
Mathieu Bridon added the comment: glob.glob('*.{sub,ac}') ['config.sub'] I'm surprised this broke, this is one of the behaviour I thought I had implemented in my original patch. :-/ (and moreover, now it is impossible to glob for paths that contain braces) I am absolutely sure

[issue22678] An OSError subclass for no space left on device would be nice

2014-10-20 Thread Mathieu Bridon
New submission from Mathieu Bridon: I found myself writing the following code the other day: try: os.mkdir(path) except PermissionError: do_something() except FileExistsError: do_something_else() except

[issue22678] An OSError subclass for no space left on device would be nice

2014-10-20 Thread Mathieu Bridon
Changes by Mathieu Bridon boche...@daitauha.fr: -- keywords: +patch Added file: http://bugs.python.org/file36981/0001-New-NoSpaceError.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22678

[issue22678] An OSError subclass for no space left on device would be nice

2014-10-20 Thread Mathieu Bridon
Changes by Mathieu Bridon boche...@daitauha.fr: Added file: http://bugs.python.org/file36982/0002-Use-the-new-NoSpaceError.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22678

[issue14102] argparse: add ability to create a man page

2015-06-07 Thread Mathieu Bridon
Changes by Mathieu Bridon boche...@daitauha.fr: -- nosy: +bochecha ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14102 ___ ___ Python-bugs-list

[issue14102] argparse: add ability to create a man page

2015-06-07 Thread Mathieu Bridon
Mathieu Bridon added the comment: Any news on this? The code posted by Oz Tiram (I took the latest from his github repo) works quite well, even with Python 3. (I just tested it) It would be great if argparse could include the formatter class, as well as the distutils command

[issue27318] Add support for symlinks to zipfile

2017-06-02 Thread Mathieu Bridon
Mathieu Bridon added the comment: Do note that extracting a zipfile with symlinks might lead to unexpected results, for example if the path pointed to is outside of the extract dir. Maybe the behaviour introduced in this patch should not be the default, but instead `extract` and `extractall