Re: [ctypes-users] How come this is different?
Brought to you by:
theller
From: eryk s. <er...@gm...> - 2016-12-10 21:17:10
|
On Sat, Dec 10, 2016 at 7:44 PM, Michael C <mys...@gm...> wrote: > what does this do? > > source_array = (wintypes.DWORD * 10)(*range(10)) That's creating an array of 10 DWORD values, {0,1,2,3,4,5,6,7,8,9}, which is used for the the demo. ctypes arrays are initialized with positional arguments, which is why it uses the splat (*) operator on range(10). |