summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-04-08 08:21:35 (GMT)
committerGitHub <noreply@github.com>2021-04-08 08:21:35 (GMT)
commit5490b49fa6646c9f48869955c12cf6af9fc3f2a4 (patch)
tree413cec5e5b1e63a29cf42f5454e5818a7f873ce9 /Doc
parentb3e8722853c25fa03ae0e3b74513498ce19ea10c (diff)
downloadcpython-5490b49fa6646c9f48869955c12cf6af9fc3f2a4.zip
cpython-5490b49fa6646c9f48869955c12cf6af9fc3f2a4.tar.gz
cpython-5490b49fa6646c9f48869955c12cf6af9fc3f2a4.tar.bz2
[3.9] 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). (cherry picked from commit 14829b09eb652f457cf837836909169746a810f0) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
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