Skip to content

Commit cdbe30b

Browse files
authored
ptr_ = a.buffer_info() 这一行错了, 少了一个ptr_之间少可以个,
ptr_ = a.buffer_info() 这一行错了, 少了一个ptr_之间少可以个,
1 parent d82f16e commit cdbe30b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/c15/p01_access_ccode_using_ctypes.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@
255255
>>> a = array.array('d',[1,2,3])
256256
>>> a
257257
array('d', [1.0, 2.0, 3.0])
258-
>>> ptr_ = a.buffer_info()
258+
>>> ptr, _ = a.buffer_info()
259259
>>> ptr
260260
4298687200
261261
>>> ctypes.cast(ptr, ctypes.POINTER(ctypes.c_double))

0 commit comments

Comments
 (0)