Skip to content

Commit 14829b0

Browse files
authored
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).
1 parent 4e2ef70 commit 14829b0

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)