René's URL Explorer Experiment


Title: Defining Extension Types: Tutorial — Python 3.15.0a5 documentation

Open Graph Title: Defining Extension Types: Tutorial

Description: Python allows the writer of a C extension module to define new types that can be manipulated from Python code, much like the built-in str and list types. The code for all extension types follows a ...

Open Graph Description: Python allows the writer of a C extension module to define new types that can be manipulated from Python code, much like the built-in str and list types. The code for all extension types follows a ...

Opengraph URL: https://docs.python.org/3/extending/newtypes_tutorial.html

direct link

Domain: docs.python.org

og:typewebsite
og:site_namePython documentation
og:image:width1146
og:image:height600
og:imagehttps://docs.python.org/3.15/_images/social_previews/summary_extending_newtypes_tutorial_38ecea28.png
og:image:altPython allows the writer of a C extension module to define new types that can be manipulated from Python code, much like the built-in str and list types. The code for all extension types follows a ...
twitter:cardsummary_large_image
theme-color#3776ab
readthedocs-addons-api-version1

Links:

https://www.python.org/
Table of Contentshttps://docs.python.org/dev/contents.html
Defining Extension Types: Tutorialhttps://docs.python.org/dev/extending/newtypes_tutorial.html
The Basicshttps://docs.python.org/dev/extending/newtypes_tutorial.html#the-basics
Adding data and methods to the Basic examplehttps://docs.python.org/dev/extending/newtypes_tutorial.html#adding-data-and-methods-to-the-basic-example
Providing finer control over data attributeshttps://docs.python.org/dev/extending/newtypes_tutorial.html#providing-finer-control-over-data-attributes
Supporting cyclic garbage collectionhttps://docs.python.org/dev/extending/newtypes_tutorial.html#supporting-cyclic-garbage-collection
Subclassing other typeshttps://docs.python.org/dev/extending/newtypes_tutorial.html#subclassing-other-types
Using the C API: Assorted topicshttps://docs.python.org/dev/extending/extending.html
Defining Extension Types: Assorted Topicshttps://docs.python.org/dev/extending/newtypes.html
Report a bughttps://docs.python.org/dev/bugs.html
Show source https://github.com/python/cpython/blob/main/Doc/extending/newtypes_tutorial.rst?plain=1
indexhttps://docs.python.org/dev/genindex.html
moduleshttps://docs.python.org/dev/py-modindex.html
nexthttps://docs.python.org/dev/extending/newtypes.html
previoushttps://docs.python.org/dev/extending/extending.html
Pythonhttps://www.python.org/
3.15.0a5 Documentationhttps://docs.python.org/dev/index.html
Extending and Embedding the Python Interpreterhttps://docs.python.org/dev/extending/index.html
Defining Extension Types: Tutorialhttps://docs.python.org/dev/extending/newtypes_tutorial.html
https://docs.python.org/dev/extending/newtypes_tutorial.html#defining-extension-types-tutorial
strhttps://docs.python.org/dev/library/stdtypes.html#str
listhttps://docs.python.org/dev/library/stdtypes.html#list
https://docs.python.org/dev/extending/newtypes_tutorial.html#the-basics
CPythonhttps://docs.python.org/dev/glossary.html#term-CPython
PyObjecthttps://docs.python.org/dev/c-api/structures.html#c.PyObject
PyObjecthttps://docs.python.org/dev/c-api/structures.html#c.PyObject
reference counthttps://docs.python.org/dev/glossary.html#term-reference-count
PyType_FromSpec()https://docs.python.org/dev/c-api/type.html#c.PyType_FromSpec
PyObjecthttps://docs.python.org/dev/c-api/structures.html#c.PyObject
Py_TYPEhttps://docs.python.org/dev/c-api/structures.html#c.Py_TYPE
Py_REFCNThttps://docs.python.org/dev/c-api/refcounting.html#c.Py_REFCNT
debug buildshttps://docs.python.org/dev/using/configure.html#debug-build
PyObject_HEADhttps://docs.python.org/dev/c-api/structures.html#c.PyObject_HEAD
PyTypeObjecthttps://docs.python.org/dev/c-api/type.html#c.PyTypeObject
PyTypeObjecthttps://docs.python.org/dev/c-api/type.html#c.PyTypeObject
fieldshttps://docs.python.org/dev/c-api/typeobj.html#type-structs
pydochttps://docs.python.org/dev/library/pydoc.html#module-pydoc
picklehttps://docs.python.org/dev/library/pickle.html#module-pickle
tp_itemsizehttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_itemsize
tp_basicsizehttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_basicsize
__bases__https://docs.python.org/dev/reference/datamodel.html#type.__bases__
__new__()https://docs.python.org/dev/reference/datamodel.html#object.__new__
tp_basicsizehttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_basicsize
objecthttps://docs.python.org/dev/library/functions.html#object
Py_TPFLAGS_DEFAULThttps://docs.python.org/dev/c-api/typeobj.html#c.Py_TPFLAGS_DEFAULT
tp_dochttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_doc
tp_newhttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_new
__new__()https://docs.python.org/dev/reference/datamodel.html#object.__new__
PyType_GenericNew()https://docs.python.org/dev/c-api/type.html#c.PyType_GenericNew
ob_typehttps://docs.python.org/dev/c-api/structures.html#c.PyObject.ob_type
https://docs.python.org/dev/extending/newtypes_tutorial.html#adding-data-and-methods-to-the-basic-example
tp_deallochttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_dealloc
Py_XDECREF()https://docs.python.org/dev/c-api/refcounting.html#c.Py_XDECREF
tp_freehttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_free
tp_newhttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_new
__new__()https://docs.python.org/dev/reference/datamodel.html#object.__new__
PyType_GenericNew()https://docs.python.org/dev/c-api/type.html#c.PyType_GenericNew
tp_allochttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_alloc
tp_allochttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_alloc
tp_allochttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_alloc
PyType_Ready()https://docs.python.org/dev/c-api/type.html#c.PyType_Ready
objecthttps://docs.python.org/dev/library/functions.html#object
tp_newhttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_new
tp_newhttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_new
__new__()https://docs.python.org/dev/reference/datamodel.html#object.__new__
tp_newhttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_new
TypeErrorhttps://docs.python.org/dev/library/exceptions.html#TypeError
tp_inithttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_init
tp_inithttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_init
__init__()https://docs.python.org/dev/reference/datamodel.html#object.__init__
picklehttps://docs.python.org/dev/library/pickle.html#module-pickle
__init__()https://docs.python.org/dev/reference/datamodel.html#object.__init__
thread statehttps://docs.python.org/dev/glossary.html#term-attached-thread-state
[1]https://docs.python.org/dev/extending/newtypes_tutorial.html#id5
thread statehttps://docs.python.org/dev/glossary.html#term-attached-thread-state
tp_deallochttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_dealloc
[2]https://docs.python.org/dev/extending/newtypes_tutorial.html#id6
tp_membershttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_members
Generic Attribute Managementhttps://docs.python.org/dev/extending/newtypes.html#generic-attribute-management
METH_NOARGShttps://docs.python.org/dev/c-api/structures.html#c.METH_NOARGS
tp_methodshttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_methods
Py_TPFLAGS_BASETYPEhttps://docs.python.org/dev/c-api/typeobj.html#c.Py_TPFLAGS_BASETYPE
PyModuleDefhttps://docs.python.org/dev/c-api/module.html#c.PyModuleDef
PyTypeObjecthttps://docs.python.org/dev/c-api/type.html#c.PyTypeObject
https://docs.python.org/dev/extending/newtypes_tutorial.html#providing-finer-control-over-data-attributes
PyGetSetDefhttps://docs.python.org/dev/c-api/structures.html#c.PyGetSetDef
tp_getsethttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_getset
PyGetSetDefhttps://docs.python.org/dev/c-api/structures.html#c.PyGetSetDef
tp_inithttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_init
[3]https://docs.python.org/dev/extending/newtypes_tutorial.html#id7
Py_XDECREF()https://docs.python.org/dev/c-api/refcounting.html#c.Py_XDECREF
Py_DECREF()https://docs.python.org/dev/c-api/refcounting.html#c.Py_DECREF
https://docs.python.org/dev/extending/newtypes_tutorial.html#supporting-cyclic-garbage-collection
cyclic garbage collector (GC)https://docs.python.org/dev/glossary.html#term-garbage-collection
[4]https://docs.python.org/dev/extending/newtypes_tutorial.html#id8
Py_VISIT()https://docs.python.org/dev/c-api/gcsupport.html#c.Py_VISIT
Py_VISIT()https://docs.python.org/dev/c-api/gcsupport.html#c.Py_VISIT
tp_traversehttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_traverse
Py_VISIT()https://docs.python.org/dev/c-api/gcsupport.html#c.Py_VISIT
Py_CLEAR()https://docs.python.org/dev/c-api/refcounting.html#c.Py_CLEAR
Py_XDECREF()https://docs.python.org/dev/c-api/refcounting.html#c.Py_XDECREF
Py_CLEAR()https://docs.python.org/dev/c-api/refcounting.html#c.Py_CLEAR
Py_CLEAR()https://docs.python.org/dev/c-api/refcounting.html#c.Py_CLEAR
PyObject_GC_UnTrack()https://docs.python.org/dev/c-api/gcsupport.html#c.PyObject_GC_UnTrack
PyObject_GC_UnTrack()https://docs.python.org/dev/c-api/gcsupport.html#c.PyObject_GC_UnTrack
Py_TPFLAGS_HAVE_GChttps://docs.python.org/dev/c-api/typeobj.html#c.Py_TPFLAGS_HAVE_GC
tp_allochttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_alloc
tp_freehttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_free
https://docs.python.org/dev/extending/newtypes_tutorial.html#subclassing-other-types
PyTypeObjecthttps://docs.python.org/dev/c-api/type.html#c.PyTypeObject
PyTypeObjecthttps://docs.python.org/dev/c-api/type.html#c.PyTypeObject
listhttps://docs.python.org/dev/library/stdtypes.html#list
PyObject_HEAD()https://docs.python.org/dev/c-api/structures.html#c.PyObject_HEAD
__init__()https://docs.python.org/dev/reference/datamodel.html#object.__init__
tp_newhttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_new
tp_deallochttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_dealloc
tp_newhttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_new
tp_allochttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_alloc
tp_newhttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_new
PyTypeObjecthttps://docs.python.org/dev/c-api/type.html#c.PyTypeObject
tp_basehttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_base
PyList_Typehttps://docs.python.org/dev/c-api/list.html#c.PyList_Type
Py_mod_exechttps://docs.python.org/dev/c-api/module.html#c.Py_mod_exec
PyType_Ready()https://docs.python.org/dev/c-api/type.html#c.PyType_Ready
tp_basehttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_base
tp_allochttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_alloc
PyType_GenericNew()https://docs.python.org/dev/c-api/type.html#c.PyType_GenericNew
PyType_Ready()https://docs.python.org/dev/c-api/type.html#c.PyType_Ready
1https://docs.python.org/dev/extending/newtypes_tutorial.html#id1
2https://docs.python.org/dev/extending/newtypes_tutorial.html#id2
tp_deallochttps://docs.python.org/dev/c-api/typeobj.html#c.PyTypeObject.tp_dealloc
3https://docs.python.org/dev/extending/newtypes_tutorial.html#id3
4https://docs.python.org/dev/extending/newtypes_tutorial.html#id4
strhttps://docs.python.org/dev/library/stdtypes.html#str
Table of Contentshttps://docs.python.org/dev/contents.html
Defining Extension Types: Tutorialhttps://docs.python.org/dev/extending/newtypes_tutorial.html
The Basicshttps://docs.python.org/dev/extending/newtypes_tutorial.html#the-basics
Adding data and methods to the Basic examplehttps://docs.python.org/dev/extending/newtypes_tutorial.html#adding-data-and-methods-to-the-basic-example
Providing finer control over data attributeshttps://docs.python.org/dev/extending/newtypes_tutorial.html#providing-finer-control-over-data-attributes
Supporting cyclic garbage collectionhttps://docs.python.org/dev/extending/newtypes_tutorial.html#supporting-cyclic-garbage-collection
Subclassing other typeshttps://docs.python.org/dev/extending/newtypes_tutorial.html#subclassing-other-types
Using the C API: Assorted topicshttps://docs.python.org/dev/extending/extending.html
Defining Extension Types: Assorted Topicshttps://docs.python.org/dev/extending/newtypes.html
Report a bughttps://docs.python.org/dev/bugs.html
Show source https://github.com/python/cpython/blob/main/Doc/extending/newtypes_tutorial.rst?plain=1
indexhttps://docs.python.org/dev/genindex.html
moduleshttps://docs.python.org/dev/py-modindex.html
nexthttps://docs.python.org/dev/extending/newtypes.html
previoushttps://docs.python.org/dev/extending/extending.html
Pythonhttps://www.python.org/
3.15.0a5 Documentationhttps://docs.python.org/dev/index.html
Extending and Embedding the Python Interpreterhttps://docs.python.org/dev/extending/index.html
Defining Extension Types: Tutorialhttps://docs.python.org/dev/extending/newtypes_tutorial.html
Copyrighthttps://docs.python.org/dev/copyright.html
History and Licensehttps://docs.python.org/license.html
Please donate.https://www.python.org/psf/donations/
Found a bughttps://docs.python.org/bugs.html
Sphinxhttps://www.sphinx-doc.org/

Viewport: width=device-width, initial-scale=1.0


URLs of crawlers that visited me.