Author serhiy.storchaka
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.19:22:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352229755.81.0.969884140943.issue9584@psf.upfronthosting.co.za>
In-reply-to
Content
> This may make this change untenable as no-one will want a series of
> use_feature_xxx flags, one for each change we introduce to glob.glob.
> Unless we throw in every known expansion / matching right now and have a
> single use-extended-features flag.

This is another question.  glob.glob(pattern, glob.GLOB_XXX | glob.GLOB_YYY) looks not much shorter than glob.glob(pattern, use_xxx=True, use_yyy=True).  And not all features can be configured by only one bit.  See os.access() and os.utime() as examples for many options.  I hope that before 3.4 feature freeze we can change the interface, if needed.

I also believe that this feature may not be regarded as mature without any sort of escaping (which also should be off by default for compatibility).  And we need glob.escape() function for escaping arbitrary path.

Since it is quite a complicated function, we need more examples in the documentation, which show different corner cases, nesting  and interaction with wildcards.
History
Date User Action Args
2012-11-06 19:22:36serhiy.storchakasetrecipients: + serhiy.storchaka, fdrake, akuchling, ronaldoussoren, pitrou, eric.smith, tim.golden, kveretennicov, ezio.melotti, eric.araujo, r.david.murray, bochecha, python-dev
2012-11-06 19:22:35serhiy.storchakasetmessageid: <1352229755.81.0.969884140943.issue9584@psf.upfronthosting.co.za>
2012-11-06 19:22:35serhiy.storchakalinkissue9584 messages
2012-11-06 19:22:34serhiy.storchakacreate