[New-bugs-announce] [issue5852] can't use "glog" to find the path with square bracket

winterTTr report at bugs.python.org
Mon Apr 27 09:55:13 CEST 2009


New submission from winterTTr <winterTTr at gmail.com>:

I want to list the file with glob .
The path( which is a directory ) is contain square bracket as "[ab]xxx" 
.  However , i can't find how to do it rightly with glob .

with the coding :

{{{
import glob
glob.glob('[ab]xxx' )
}}}

and with the path "[ab]xxx" really exits. 
result : []

Is there a way to do it rightly ?
Or it is a bug ?

----------
components: Library (Lib), Regular Expressions, Windows
messages: 86648
nosy: winterTTr
severity: normal
status: open
title: can't use "glog" to find the path with square bracket
type: resource usage
versions: Python 2.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5852>
_______________________________________


More information about the New-bugs-announce mailing list