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

ntpath.isreserved

Prev: ntpath.ismount | Up: ntpath | Next: ntpath.join
Rel: ntpath.abspath, ntpath.basename, ntpath.commonpath, ntpath.commonprefix
Ref: docs.python.org — ntpath.isreserved
Tags: #public #python3 #stdlib #ntpath


Import

import ntpath
from ntpath import isreserved

Signature & Overview

ntpath.isreserved(path)

Return true if the pathname is reserved by the system.

Usage

import ntpath

if hasattr(ntpath, 'isreserved'):
    assert ntpath.isreserved('CON') is True
    assert ntpath.isreserved('normal.txt') is False

Gotchas

REPL Inspect

from ntpath import isreserved
help(isreserved)

Linked from

Related notes