[Python-Dev] bpo-9584: Added brace expressions to the glob and fnmatch.
matus valo
matusvalo at gmail.com
Thu May 16 14:04:25 EDT 2019
Hi All,
I have implemented PR fixing bpo-9584 few months ago. Recently, I was
encouraged that conversation on DEV mailing list should be started here on
DEV mailing list. From the conversation in bug report, I understood that
the main problem is that straightforward implementation can break a
backward compatibility. E.g.:
* Patched python:
>>> import os
>>> import glob
>>> os.makedirs('a{b,c}d/e')
>>> os.listdir('a{b,c}d')
['e']
>>> glob.glob('a{b,c}d/*')
[]
>>>
* Unpatched python:
>>> import os, glob
>>> os.makedirs('a{b,c}d/e')
>>> os.listdir('a{b,c}d')
['e']
>>> glob.glob('a{b,c}d/*')
['a{b,c}d/e']
How can I proceed with the PR? Please advise.
Thanks,
Matus Valo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20190516/1d49a960/attachment.html>
More information about the Python-Dev
mailing list