glob.glob unicode bug or feature
From: Elbert Lev (elbertlev_at_hotmail.com)
Date: 07/31/04
- Next message: Christophe: "Status of wxpython on several platforms"
- Previous message: R Baumann: "Re: MySQLdb select"
- Next in thread: Skip Montanaro: "Re: glob.glob unicode bug or feature"
- Reply: Skip Montanaro: "Re: glob.glob unicode bug or feature"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 31 Jul 2004 08:12:50 -0700
#Here is the script
#Python 2.3 on W2K
import glob
name = glob.glob(u"./*.mp3")[0]
print type(name)
name = glob.glob(u"*.mp3")[0]
print type(name)
##OUTPUT##
#<type 'unicode'>
#<type 'str'>
#Is this a bug, or a feature? I beleve it's a bug.
- Next message: Christophe: "Status of wxpython on several platforms"
- Previous message: R Baumann: "Re: MySQLdb select"
- Next in thread: Skip Montanaro: "Re: glob.glob unicode bug or feature"
- Reply: Skip Montanaro: "Re: glob.glob unicode bug or feature"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|