summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2021-04-05 19:21:00 (GMT)
committerGitHub <noreply@github.com>2021-04-05 19:21:00 (GMT)
commit14829b09eb652f457cf837836909169746a810f0 (patch)
tree0946d8040dcdc322f66ac49ac4ff800db7ba47e2 /Doc
parent4e2ef7084185d2220003b4b5538e3d8190b2dcd6 (diff)
downloadcpython-14829b09eb652f457cf837836909169746a810f0.zip
cpython-14829b09eb652f457cf837836909169746a810f0.tar.gz
cpython-14829b09eb652f457cf837836909169746a810f0.tar.bz2
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).
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/ctypes.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst
index 7313148..fd6422c 100644
--- a/Doc/library/ctypes.rst
+++ b/Doc/library/ctypes.rst
@@ -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