mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
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).
This commit is contained in:
parent
4e2ef70841
commit
14829b09eb
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue