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

ntpath.split

Prev: ntpath.samestat | Up: ntpath | Next: ntpath.splitdrive
Rel: ntpath.abspath, ntpath.basename, ntpath.commonpath, ntpath.commonprefix
Ref: docs.python.org — ntpath.split
Tags: #public #python3 #stdlib #ntpath


Import

import ntpath
from ntpath import split

Signature & Overview

ntpath.split(p)

Split a pathname.

Usage

import ntpath

assert ntpath.split(r'C:\a\b.txt') == (r'C:\a', 'b.txt')

Gotchas

REPL Inspect

from ntpath import split
help(split)

Linked from

Related notes