issue27186 -- initial docs, tests, and python version of os.fspath

This commit is contained in:
Ethan Furman 2016-06-02 15:06:09 -07:00
parent 1f56e5f6af
commit cdc0879d3a
3 changed files with 51 additions and 0 deletions

View file

@ -186,6 +186,15 @@ process and user.
.. versionadded:: 3.2
.. function:: fspath(path)
Return the string representation of the path.
If :class:`str` or :class:`bytes` is passed in, it is returned unchanged;
otherwise, the result of calling ``type(path).__fspath__`` is returned, or an
exception is raised.
.. function:: getenv(key, default=None)
Return the value of the environment variable *key* if it exists, or