No bug indeed, Erik was correct, in fact I had files with the * in the name...
Thanks all for your replies! Erik Max Francis wrote: > > John [H2O] wrote: > >> I have a glob.glob search: >> >> searchstring = os.path.join('path'+'EN*') >> files = glob.glob(searchstring) >> for f in files: >> print f >> >> >> ___ >> This returns some files: >> EN082333 >> EN092334 >> EN* >> >> My routine cannot handle the '*' and it should'nt be returned anyway? :-/ >> >> A bug? > > No, it means you actually have a file named 'EN*' in the directory. > > -- > Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/ > San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis > Many would be cowards if they had courage enough. > -- Thomas Fuller > -- > http://mail.python.org/mailman/listinfo/python-list > > -- View this message in context: http://www.nabble.com/appending-*-to-glob-returns-files-with-%27*%27-%21%21-tp19579121p19638699.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listinfo/python-list