Skip to content

Commit

Permalink
[3.9] 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>
  • Loading branch information
miss-islington and ZackerySpytz committed Apr 8, 2021
1 parent b3e8722 commit 5490b49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/ctypes.rst
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 5490b49

Please sign in to comment.