GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Expat C API
  • Object Protocol
  • Report a bug
  • Improve this page
  • Show source
  • index
  • modules
  • Python
  • 3.15.2 documentation
  • Python/C API reference manual
  • Abstract Objects Layer

This view

  • Original page
  • New address

GeezerVison is showing docs.python.org — Abstract Objects Layer

Abstract Objects Layer¶

The functions in this chapter interact with Python objects regardless of their type, or with wide classes of object types (e.g. all numerical types, or all sequence types). When used on object types for which they do not apply, they will raise a Python exception.

It is not possible to use these functions on objects that are not properly initialized, such as a list object that has been created by PyList_New(), but whose items have not been set to some non-NULL value yet.

  • Object Protocol
  • Call Protocol
    • The tp_call Protocol
    • The Vectorcall Protocol
      • Recursion Control
      • Vectorcall Support API
    • Object Calling API
    • Call Support API
  • Number Protocol
  • Sequence Protocol
  • Mapping Protocol
  • Iterator Protocol
  • Buffer Protocol
    • Buffer structure
    • Buffer request types
      • request-independent fields
      • readonly, format
      • shape, strides, suboffsets
      • contiguity requests
      • compound requests
    • Complex arrays
      • NumPy-style: shape and strides
      • PIL-style: shape, strides and suboffsets
    • Buffer-related functions
© Copyright 2001 Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

The Python Software Foundation is a non-profit corporation. Please donate.

Last updated on Nov 12, 2026 (08:53 UTC). Found a bug?
Created using Sphinx 9.1.1.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.