File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ the correct type and value::
284
284
>>> c_int()
285
285
c_long(0)
286
286
>>> c_wchar_p("Hello, World")
287
- c_wchar_p('Hello, World' )
287
+ c_wchar_p(140018365411392 )
288
288
>>> c_ushort(-3)
289
289
c_ushort(65533)
290
290
>>>
@@ -309,11 +309,15 @@ bytes objects are immutable)::
309
309
>>> s = "Hello, World"
310
310
>>> c_s = c_wchar_p(s)
311
311
>>> print(c_s)
312
- c_wchar_p('Hello, World')
312
+ c_wchar_p(139966785747344)
313
+ >>> print(c_s.value)
314
+ Hello World
313
315
>>> c_s.value = "Hi, there"
314
- >>> print(c_s)
315
- c_wchar_p('Hi, there')
316
- >>> print(s) # first object is unchanged
316
+ >>> print(c_s) # the memory location has changed
317
+ c_wchar_p(139966783348904)
318
+ >>> print(c_s.value)
319
+ Hi, there
320
+ >>> print(s) # first object is unchanged
317
321
Hello, World
318
322
>>>
319
323
You can’t perform that action at this time.
0 commit comments