[go: up one dir, main page]

0% found this document useful (0 votes)
3 views2 pages

Objimpl

This chapter covers the implementation of new object types, including heap allocation, common structures, and methods for accessing attributes. It details the PyTypeObject definition, various object structures, and provides information on garbage collection management. Additionally, it includes examples and quick references for understanding object slots and types.

Uploaded by

Anupam Tripathi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Objimpl

This chapter covers the implementation of new object types, including heap allocation, common structures, and methods for accessing attributes. It details the PyTypeObject definition, various object structures, and provides information on garbage collection management. Additionally, it includes examples and quick references for understanding object slots and types.

Uploaded by

Anupam Tripathi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Object Implementation Support

*****************************

This chapter describes the functions, types, and macros used when
defining new object types.

* Allocating Objects on the Heap

* Common Object Structures

* Base object types and macros

* Implementing functions and methods

* Accessing attributes of extension types

* Member flags

* Member types

* Defining Getters and Setters

* Type Objects

* Quick Reference

* "tp slots"

* sub-slots

* slot typedefs

* PyTypeObject Definition

* PyObject Slots

* PyVarObject Slots

* PyTypeObject Slots

* Static Types

* Heap Types

* Number Object Structures

* Mapping Object Structures

* Sequence Object Structures

* Buffer Object Structures

* Async Object Structures

* Slot Type typedefs

* Examples

* Supporting Cyclic Garbage Collection


* Controlling the Garbage Collector State

* Querying Garbage Collector State

You might also like