Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.69 KB

hpy-type.rst

File metadata and controls

50 lines (35 loc) · 1.69 KB

HPy Types and Modules

Types, modules and their attributes (i.e. methods, members, slots, get-set descriptors) are defined in a similar way. Section HPy Type documents the type-specific and HPy Module documents the module-specific part. Section HPy Definition documents how to define attributes for both, types and modules.

HPy Type

Definition

hpy/hpytype.h

Construction and More

autogen/public_api.h

HPy Module

hpy/hpymodule.h

HPy Definition

Defining slots, methods, members, and get-set descriptors for types and modules is done with HPy definition (represented by C struct :cHPyDef).

hpy/hpydef.h