Skip to content

Commit 79061af

Browse files
[3.12] gh-115091: Remove a left-over sentence that refers to Py_OptimizeFlag from ctypes documentation (GH-115092) (GH-115936)
Remove a left-over sentence that refers to an example that was present in Python 3.10 and was using ``Py_OptimizeFlag``. (cherry picked from commit 915d7dd) Co-authored-by: Antti Haapala <[email protected]>
1 parent daa28d7 commit 79061af

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Doc/library/ctypes.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,10 +1113,6 @@ api::
11131113
>>> print(hex(version.value))
11141114
0x30c00a0
11151115

1116-
If the interpreter would have been started with :option:`-O`, the sample would
1117-
have printed ``c_long(1)``, or ``c_long(2)`` if :option:`-OO` would have been
1118-
specified.
1119-
11201116
An extended example which also demonstrates the use of pointers accesses the
11211117
:c:data:`PyImport_FrozenModules` pointer exported by Python.
11221118

0 commit comments

Comments
 (0)