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.

Author ned.deily
Recipients hynek, ned.deily, pitrou, python-dev, ronaldoussoren
Date 2013-11-22.21:18:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385155095.04.0.417775982172.issue19718@psf.upfronthosting.co.za>
In-reply-to
Content
FWIW, it looks like Path.glob() is behaving the same as the default shell (bash 3.2 on OS X 10.6.8):

Python 3.4.0a4+ (default:cce14bc9b675, Nov 22 2013, 13:01:47)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pathlib
>>> p = pathlib.Path(".")
>>> list(p.glob("fileA"))
[PosixPath('fileA')]
>>> list(p.glob("file*"))
[PosixPath('fileA')]
>>> list(p.glob("fileA*"))
[PosixPath('fileA')]
>>> list(p.glob("FILE*"))
[]
>>> list(p.glob("FILEa*"))
[]
>>> list(p.glob("FILEa"))
[PosixPath('FILEa')]
>>> list(p.glob("FILEA"))
[PosixPath('FILEA')]

$ ls .
fileA
$ ls fileA
fileA
$ ls file*
fileA
$ ls fileA*
fileA
$ ls FILE*
ls: FILE*: No such file or directory
$ ls FILEa*
ls: FILEa*: No such file or directory
$ ls FILEa
FILEa
$ ls FILEA
FILEA
History
Date User Action Args
2013-11-22 21:18:15ned.deilysetrecipients: + ned.deily, ronaldoussoren, pitrou, python-dev, hynek
2013-11-22 21:18:15ned.deilysetmessageid: <1385155095.04.0.417775982172.issue19718@psf.upfronthosting.co.za>
2013-11-22 21:18:15ned.deilylinkissue19718 messages
2013-11-22 21:18:14ned.deilycreate