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
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
Changes by Mathieu Bridon :
--
nosy: +bochecha
___
Python tracker
<http://bugs.python.org/issue14102>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Mathieu Bridon :
Added file: http://bugs.python.org/file36982/0002-Use-the-new-NoSpaceError.patch
___
Python tracker
<http://bugs.python.org/issue22
Changes by Mathieu Bridon :
--
keywords: +patch
Added file: http://bugs.python.org/file36981/0001-New-NoSpaceError.patch
___
Python tracker
<http://bugs.python.org/issue22
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
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 b
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.
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
Mathieu Bridon 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
<http://bugs.python.org/issue9
Mathieu Bridon 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 o
Mathieu Bridon 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/file21002/0002-Remove-u
Changes by Mathieu Bridon :
Removed file:
http://bugs.python.org/file20129/0001-Curly-brace-expansion-in-glob.patch
___
Python tracker
<http://bugs.python.org/issue9
Mathieu Bridon 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
___
Python tracker
<h
Mathieu Bridon 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 to get
Mathieu Bridon 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
<http://bugs.python.org/issue9
Changes by Mathieu Bridon :
Removed file:
http://bugs.python.org/file20128/0001-Curly-brace-expansion-in-glob.patch.old
___
Python tracker
<http://bugs.python.org/issue9
Mathieu Bridon 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
<http://bugs.python.org/issue9
Changes by Mathieu Bridon :
Removed file:
http://bugs.python.org/file19451/0001-Curly-brace-expansion-in-glob.patch
___
Python tracker
<http://bugs.python.org/issue9
Changes by Mathieu Bridon :
Removed file: http://bugs.python.org/file18497/curly-fnmatch.patch
___
Python tracker
<http://bugs.python.org/issue9584>
___
___
Python-bug
Mathieu Bridon 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, others in glob and othe
Mathieu Bridon 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 the ha
Mathieu Bridon 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.
--
___
Pyt
New submission from Mathieu Bridon :
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.fnmatc
24 matches
Mail list logo