Skip to content

Commit

Permalink
bpo-43087: Fix error in ctypes "Incomplete Types" doc (pythonGH-24404)
Browse files Browse the repository at this point in the history
The previous "Fundamental data types" section says a c_char_p must be bytes (or None).
  • Loading branch information
ZackerySpytz committed Apr 5, 2021
1 parent 4e2ef70 commit 14829b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/ctypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -919,9 +919,9 @@ Let's try it. We create two instances of ``cell``, and let them point to each
other, and finally follow the pointer chain a few times::

>>> c1 = cell()
>>> c1.name = "foo"
>>> c1.name = b"foo"
>>> c2 = cell()
>>> c2.name = "bar"
>>> c2.name = b"bar"
>>> c1.next = pointer(c2)
>>> c2.next = pointer(c1)
>>> p = c1
Expand Down

0 comments on commit 14829b0

Please sign in to comment.