On this page
  1. ntpath.expanduser
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

ntpath.expanduser

Prev: ntpath.exists | Up: ntpath | Next: ntpath.expandvars
Rel: ntpath.abspath, ntpath.basename, ntpath.commonpath, ntpath.commonprefix
Ref: docs.python.org — ntpath.expanduser
Tags: #public #python3 #stdlib #ntpath


Import

import ntpath
from ntpath import expanduser

Signature & Overview

ntpath.expanduser(path)

Expand ~ and ~user constructs.

Usage

import ntpath

assert len(ntpath.expanduser('~')) > 0

Gotchas

REPL Inspect

from ntpath import expanduser
help(expanduser)

Linked from

Related notes