[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


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



More information about the Python-Dev mailing list