On this page
  1. shutil.SpecialFileError
  2. Import
  3. Signature & Overview
  4. Methods & Attributes
  5. Usage
  6. Gotchas
  7. REPL Inspect

shutil.SpecialFileError

Prev: shutil.SameFileError | Up: shutil | Next: shutil.unpack_archive
Rel: shutil.chown, shutil.copy, shutil.copy2, shutil.copyfile
Ref: docs.python.org โ€” shutil.SpecialFileError
Tags: #public #python3 #stdlib #shutil


Import

import shutil
from shutil import SpecialFileError

Signature & Overview

shutil.SpecialFileError(...)

Raised when trying to do a kind of operation (e.g. copying) which is not supported on a special file (e.g. a named pipe)

Methods & Attributes

Usage

import shutil

# Raised when trying to copy a named pipe (FIFO) or other non-regular special file
assert issubclass(shutil.SpecialFileError, OSError)

Gotchas

REPL Inspect

from shutil import SpecialFileError
help(SpecialFileError)

Linked from

Related notes