Skip to content

Commit 754dc35

Browse files
[3.8] bpo-43087: Fix error in ctypes "Incomplete Types" doc (GH-24404)
The previous "Fundamental data types" section says a c_char_p must be bytes (or None). (cherry picked from commit 14829b0) Co-authored-by: Zackery Spytz <zspytz@gmail.com> Co-authored-by: Zackery Spytz <zspytz@gmail.com>
1 parent 05d0fcd commit 754dc35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/ctypes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -919,9 +919,9 @@ Let's try it. We create two instances of ``cell``, and let them point to each
919919
other, and finally follow the pointer chain a few times::
920920

921921
>>> c1 = cell()
922-
>>> c1.name = "foo"
922+
>>> c1.name = b"foo"
923923
>>> c2 = cell()
924-
>>> c2.name = "bar"
924+
>>> c2.name = b"bar"
925925
>>> c1.next = pointer(c2)
926926
>>> c2.next = pointer(c1)
927927
>>> p = c1

0 commit comments

Comments
 (0)