Serhiy Storchaka added the comment: Here is a patch which implements recursive globbing which conforms to Bash globbing with "globstar" option.
For backward compatibility recursive globbing off by default and works only if new argument "recursive" is true (default is False). I am not sure this is a better variant. Possible the default should be True. '**' pattern is very unlikely in old code. However recursive globbing on arbitrary pattern and arbitrary tree is not safe, it can hang on recursive symlinks. The patch contains changes from issue16618. ---------- dependencies: +Different glob() results for strings and bytes nosy: +loewis Added file: http://bugs.python.org/file28213/glob_recursive.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13968> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com