Skip to content

Commit

Permalink
[3.8] bpo-43087: Fix error in ctypes "Incomplete Types" doc (GH-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).
(cherry picked from commit 14829b0)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
  • Loading branch information
miss-islington and ZackerySpytz authored Apr 8, 2021
1 parent 05d0fcd commit 754dc35
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 754dc35

Please sign in to comment.