Skip to content

Commit e31c7e9

Browse files
Move __pointer_type__ docs to common class variables section
1 parent 0bb389e commit e31c7e9

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

Doc/library/ctypes.rst

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2349,6 +2349,16 @@ Data types
23492349
library. *name* is the name of the symbol that exports the data, *library*
23502350
is the loaded shared library.
23512351

2352+
Common class variables of ctypes data types:
2353+
2354+
.. attribute:: __pointer_type__
2355+
2356+
This attributes is a pointer type that was created by calling
2357+
:func:`POINTER` for corresponding ctypes data type. If ``POINTER`` was
2358+
not called for this type then attribute contains ``None``.
2359+
2360+
.. versionadded:: next
2361+
23522362
Common instance variables of ctypes data types:
23532363

23542364
.. attribute:: _b_base_
@@ -2370,14 +2380,6 @@ Data types
23702380
valid. This object is only exposed for debugging; never modify the
23712381
contents of this dictionary.
23722382

2373-
.. attribute:: __pointer_type__
2374-
2375-
This attributes is a pointer type that was created by calling
2376-
:func:`POINTER` for corresponding ctypes data type. If ``POINTER`` was
2377-
not called then this attribute contains ``None``.
2378-
2379-
.. versionadded:: 3.14
2380-
23812383

23822384
.. _ctypes-fundamental-data-types-2:
23832385

0 commit comments

Comments
 (0)