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

inspect.BufferFlags

Prev: inspect.BoundArguments | Up: inspect | Next: inspect.ClassFoundException
Rel: inspect.ArgInfo, inspect.Arguments, inspect.Attribute, inspect.BlockFinder
Ref: docs.python.org — inspect.BufferFlags
Tags: #public #python3 #stdlib #inspect


Import

import inspect
from inspect import BufferFlags

Signature & Overview

inspect.BufferFlags(*values)

inspect.BufferFlags class.

Methods & Attributes

Usage

import inspect

# Python 3.12+ IntFlag representing C buffer protocol flags (SIMPLE, WRITABLE, etc.)
assert hasattr(inspect, "BufferFlags")

Gotchas

REPL Inspect

from inspect import BufferFlags
help(BufferFlags)

Linked from

Related notes