This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bochecha
Recipients akuchling, bochecha, eric.araujo, eric.smith, ezio.melotti, fdrake, kveretennicov, pitrou, python-dev, r.david.murray, ronaldoussoren, serhiy.storchaka, tim.golden
Date 2012-11-06.15:12:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352214772.79.0.304279972757.issue9584@psf.upfronthosting.co.za>
In-reply-to
Content
>>> 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 this was working in my original submission, I had even added unit tests for it:
+        # test some edge cases where braces must not be expanded
+        eq(self.glob('c{}d'), [self.norm('c{}d')])
+        eq(self.glob('c{d{e,f}g'), map(self.norm, ['c{deg', 'c{dfg']))
+        eq(self.glob('c{d,e}{f}g'), map(self.norm, ['cd{f}g', 'ce{f}g']))
+        eq(self.glob('c{d,e}f}g'), map(self.norm, ['cdf}g', 'cef}g']))
History
Date User Action Args
2012-11-06 15:12:52bochechasetrecipients: + bochecha, fdrake, akuchling, ronaldoussoren, pitrou, eric.smith, tim.golden, kveretennicov, ezio.melotti, eric.araujo, r.david.murray, python-dev, serhiy.storchaka
2012-11-06 15:12:52bochechasetmessageid: <1352214772.79.0.304279972757.issue9584@psf.upfronthosting.co.za>
2012-11-06 15:12:52bochechalinkissue9584 messages
2012-11-06 15:12:52bochechacreate