“Python/docs/3.9/c-api/objimpl”的版本间差异
来自菜鸟教程
Python/docs/3.9/c-api/objimpl
(autoload) |
小 (Page commit) |
||
第1行: | 第1行: | ||
+ | {{DISPLAYTITLE:对象实现支持 — Python 文档}} | ||
<div id="object-implementation-support" class="section"> | <div id="object-implementation-support" class="section"> | ||
<span id="newtypes"></span> | <span id="newtypes"></span> | ||
− | = | + | = 对象实现支持 = |
− | + | 本章介绍定义新对象类型时使用的函数、类型和宏。 | |
− | |||
<div class="toctree-wrapper compound"> | <div class="toctree-wrapper compound"> | ||
− | * [[../allocation| | + | * [[../allocation|在堆上分配对象]] |
− | * [[../structures| | + | * [[../structures|通用对象结构]] |
− | ** [[../structures#base-object-types-and-macros| | + | ** [[../structures#base-object-types-and-macros|基本对象类型和宏]] |
− | ** [[../structures#implementing-functions-and-methods| | + | ** [[../structures#implementing-functions-and-methods|实现函数和方法]] |
− | ** [[../structures#accessing-attributes-of-extension-types| | + | ** [[../structures#accessing-attributes-of-extension-types|访问扩展类型的属性]] |
− | * [[../typeobj| | + | * [[../typeobj|类型对象]] |
− | ** [[../typeobj#quick-reference| | + | ** [[../typeobj#quick-reference|快速参考]] |
− | *** [[../typeobj#tp-slots| | + | *** [[../typeobj#tp-slots|“tp 插槽”]] |
− | *** [[../typeobj#sub-slots| | + | *** [[../typeobj#sub-slots|子槽]] |
− | *** [[../typeobj#slot-typedefs| | + | *** [[../typeobj#slot-typedefs|插槽类型定义]] |
− | ** [[../typeobj#pytypeobject-definition|PyTypeObject | + | ** [[../typeobj#pytypeobject-definition|PyTypeObject 定义]] |
− | ** [[../typeobj#pyobject-slots|PyObject | + | ** [[../typeobj#pyobject-slots|PyObject 插槽]] |
− | ** [[../typeobj#pyvarobject-slots|PyVarObject | + | ** [[../typeobj#pyvarobject-slots|PyVarObject 插槽]] |
− | ** [[../typeobj#pytypeobject-slots|PyTypeObject | + | ** [[../typeobj#pytypeobject-slots|PyTypeObject 插槽]] |
− | ** [[../typeobj#heap-types| | + | ** [[../typeobj#heap-types|堆类型]] |
− | * [[../typeobj#number-object-structures| | + | * [[../typeobj#number-object-structures|数字对象结构]] |
− | * [[../typeobj#mapping-object-structures| | + | * [[../typeobj#mapping-object-structures|映射对象结构]] |
− | * [[../typeobj#sequence-object-structures| | + | * [[../typeobj#sequence-object-structures|序列对象结构]] |
− | * [[../typeobj#buffer-object-structures| | + | * [[../typeobj#buffer-object-structures|缓冲区对象结构]] |
− | * [[../typeobj#async-object-structures| | + | * [[../typeobj#async-object-structures|异步对象结构]] |
− | * [[../typeobj#slot-type-typedefs| | + | * [[../typeobj#slot-type-typedefs|插槽类型 typedef]] |
− | * [[../typeobj#examples| | + | * [[../typeobj#examples|例子]] |
− | * [[../gcsupport| | + | * [[../gcsupport|支持循环垃圾回收]] |
第37行: | 第37行: | ||
</div> | </div> | ||
+ | <div class="clearer"> | ||
− | [[Category:Python 3.9 | + | |
+ | |||
+ | </div> | ||
+ | |||
+ | [[Category:Python 3.9 文档]] |
2021年10月31日 (日) 04:50的最新版本
对象实现支持
本章介绍定义新对象类型时使用的函数、类型和宏。