Bugs item #1776674, was opened at 2007-08-18 02:14 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1776674&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.5 Status: Open Resolution: None Priority: 5 Private: No Submitted By: norbidur (norbidur) Assigned to: Nobody/Anonymous (nobody) Summary: glob.glob inconsistent Initial Comment: On windows, glob.glob gives different results if you use a wildcard or not and if you use unix-style paths. exemple : import glob print glob.glob("c:/tmp/3691674.jpg") print glob.glob("c:/tmp/3691674.jpg*") print glob.glob("c:/res.txt") print glob.glob("c:/res.txt*") gives : ['c:/tmp/3691674.jpg'] ['c:/tmp\\3691674.jpg'] ['c:/res.txt'] ['c:/res.txt'] the two first calls give the same result but one with a platform specific separator, and not the other. One can think that if there is no wildcard, this is normal behavior to return the path given to glob.glob but then I have the second inconsitency : in that case the last result should be c:\\res.txt. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1776674&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com