A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-February/060399.html below:

[Python-Dev] Path PEP -- a couple of typos.

[Python-Dev] Path PEP -- a couple of typos. [Python-Dev] Path PEP -- a couple of typos.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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4