cpython: 9c57178f13dc (original) (raw)

Mercurial > cpython

changeset 102161:9c57178f13dc

Issue #27186: Define what a "path-like object" is. Thanks to Dusty Phillips for the initial patch. [#27186]

Brett Cannon brett@python.org
date Fri, 24 Jun 2016 12:21:47 -0700
parents ea7b6a7827a4
children 0e40091e9a24
files Doc/glossary.rst Doc/library/os.rst
diffstat 2 files changed, 19 insertions(+), 7 deletions(-)[+] [-] Doc/glossary.rst 10 Doc/library/os.rst 16

line wrap: on

line diff

--- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -778,6 +778,16 @@ Glossary One of the default :term:meta path finders <meta path finder> which searches an :term:import path for modules.

+ portion A set of files in a single directory (possibly stored in a zip file) that contribute to a namespace package, as defined in :pep:420.

--- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -171,8 +171,9 @@ process and user. .. function:: fsencode(filename)

@@ -185,8 +186,9 @@ process and user. .. function:: fsdecode(filename)

@@ -2003,8 +2005,8 @@ features: control over errors, you can catch :exc:OSError when calling one of the DirEntry methods and handle as appropriate.

@@ -2112,7 +2114,7 @@ features: Note that there is a nice correspondence between several attributes and methods of DirEntry and of :class:pathlib.Path. In