[Python-Dev] Path PEP -- a couple of typos. (original) (raw)
Scott David Daniels Scott.Daniels at Acm.Org
Sat Feb 4 22:42:21 CET 2006
- Previous message: [Python-Dev] Path PEP: some comments
- Next message: [Python-Dev] math.areclose ...?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Here are a couple of simple-minded fixes for the PEP.
Near the bottom of "Replacing older functions with the Path class":
fname = Path("Python2.4.tar.gz") base, ext = fname.namebase, fname.extx
Surely this should be: base, ext = fname.namebase, fname.ext
lib_dir = "/lib" libs = glob.glob(os.path.join(lib_dir, "s.o")) ==> lib_dir = Path("/lib") libs = lib_dir.files(".so")
Probably that should be: ... libs = glob.glob(os.path.join(lib_dir, "*.so")) ...
--Scott David Daniels Scott.Daniels at Acm.Org
- Previous message: [Python-Dev] Path PEP: some comments
- Next message: [Python-Dev] math.areclose ...?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]