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

fileinput.close

Up: fileinput | Next: fileinput.FileInput
Rel: fileinput.FileInput, fileinput.filelineno, fileinput.filename, fileinput.fileno
Ref: docs.python.org — fileinput.close
Tags: #public #python3 #stdlib #fileinput


Import

import fileinput
from fileinput import close

Signature & Overview

fileinput.close()

Close the sequence.

Usage

import fileinput

fileinput.close()   # closes the module-global FileInput instance if open

Gotchas

REPL Inspect

from fileinput import close
help(close)

Linked from

Related notes