This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2009年04月27日 07:55 by winterTTr, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (2) | |||
|---|---|---|---|
| msg86648 - (view) | Author: winterTTr (winterTTr) | Date: 2009年04月27日 07:55 | |
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 ?
|
|||
| msg86654 - (view) | Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) | Date: 2009年04月27日 10:53 | |
The bug tracker is not here to get help. Please ask this kind of question on the comp.lang.python newsgroup. (they will tell you that [ is a special character for glob(), and how to escape it) |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:48 | admin | set | github: 50102 |
| 2009年04月27日 10:53:00 | amaury.forgeotdarc | set | status: open -> closed nosy: + amaury.forgeotdarc messages: + msg86654 resolution: not a bug |
| 2009年04月27日 07:55:12 | winterTTr | create | |