Message203883
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 |
|
Date |
User |
Action |
Args |
2013-11-22 21:18:15 | ned.deily | set | recipients:
+ ned.deily, ronaldoussoren, pitrou, python-dev, hynek |
2013-11-22 21:18:15 | ned.deily | set | messageid: <1385155095.04.0.417775982172.issue19718@psf.upfronthosting.co.za> |
2013-11-22 21:18:15 | ned.deily | link | issue19718 messages |
2013-11-22 21:18:14 | ned.deily | create | |
|