bpo-9584: Added brace expressions to the glob and fnmatch.
16 May
2019
16 May
'19
11:34 p.m.
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
1804
Age (days ago)
1804
Last active (days ago)
0 comments
1 participants
participants (1)
-
matus valo