New submission from Serhiy Storchaka: glob ignores names which starts with dot if pattern is not starts with dot. But this is wrong for bytes pattern in Python 3.
>>> import glob >>> glob.glob('*hg') [] >>> glob.glob(b'*hg') [b'.hg'] The proposed patch fixes this inconsistency. Also it contains new tests for this and some other possible cases. ---------- components: Library (Lib) files: glob_dotfiles.patch keywords: patch messages: 176991 nosy: serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: Different glob() results for strings and bytes type: behavior versions: Python 3.2, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file28211/glob_dotfiles.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16618> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com