glob.glob unicode bug or feature

Elbert Lev elbertlev at hotmail.com
Sat Jul 31 11:12:50 EDT 2004


#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.



More information about the Python-list mailing list