[issue16664] [PATCH] Test Glob: files starting with .

2012-12-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch looks good to me. The docs may need improving but that's a separate concern. (also, the current behaviour is reasonable, and there is certainly existing code relying on it) -- nosy: +hynek, pitrou, tarek stage: -> commit review versions: +Py

[issue16664] [PATCH] Test Glob: files starting with .

2012-12-13 Thread Sebastian Kreft
Sebastian Kreft added the comment: The docs don't say anything about it. However the code is there (docs bug probably). See the following lines in glob.py: 57 if pattern[0] != '.': 58 names = [x for x in names if x[0] != '.'] 59 return fnmatch.filter(names, pattern)

[issue16664] [PATCH] Test Glob: files starting with .

2012-12-13 Thread Éric Araujo
Éric Araujo added the comment: Hm, unix shells have different rules about matching a leading dot or not. Are the docs clear about Python's glob's rules? -- nosy: +eric.araujo versions: -Python 3.5 ___ Python tracker

[issue16664] [PATCH] Test Glob: files starting with .

2012-12-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue16618. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailin

[issue16664] [PATCH] Test Glob: files starting with .

2012-12-11 Thread Sebastian Kreft
New submission from Sebastian Kreft: Please find attached a patch to improve the test cases for the glob module. It adds test cases for files starting with '.'. -- components: Tests files: python.patch keywords: patch messages: 177345 nosy: Sebastian.Kreft priority: normal severity: nor