liveBook · Manning

File descriptor

Also called file handle

A file descriptor is an operating-system identifier for an open file, socket, pipe, or other input-output resource.

How 2 Manning books explain it

Python How-To

A file is a persistent, named container of data stored by a computer system.

How it is used
Uses Python file objects to access stored data for reading, writing, and preservation.
How deep it goes
Demonstrates file-object modes and methods but does not define file descriptors or explain their internals.
Examples
Uses a task list to demonstrate reading lines, writing strings, and appending a task.
What you can do after
Apply it via Python's open() to read and write files with appropriate modes and context management.

Read how Python How-To explains file descriptor →

The Quick Python Book, Fourth Edition

A data file is a stored file whose contents provide data for retrieval, processing, or analysis.

How it is used
Uses data files as inputs and outputs for Python processing, including the extract step of ETL.
How deep it goes
Explains opening, reading, writing, positioning, and closing Python file objects, but does not define operating-system file descriptors.
Examples
Demonstrates writing and rereading myfile, then accessing it by an absolute pathname.
What you can do after
Apply it via Python’s open() and file-object methods to read or write files and close them reliably.

Read how The Quick Python Book, Fourth Edition explains file descriptor →

Also covered in

What to know first

Related concepts

Questions about file descriptor

What is file descriptor?

A file descriptor is an operating-system identifier for an open file, socket, pipe, or other input-output resource.

Which Manning books explain file descriptor?

Python How-To and The Quick Python Book, Fourth Edition.

What should I know before learning file descriptor?

Manning books that teach file descriptor usually introduce loop, string, Map and list first.

What kinds of file descriptor are there?

Kinds of file descriptor include module.

What is file descriptor a kind of?

File descriptor is a kind of iterator. An iterator is an object or abstraction that provides successive values from a collection or other data source through a traversal interface.

What is file descriptor also called?

File descriptor is also called file handle.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.