python - parameter transferring in the wmi -


hello have problem understanding piece of code:

import wmi c = wmi.wmi ()  process_id, return_value = c.win32_process.create (commandline="notepad.exe") process in c.win32_process (processid=process_id):   print process.processid, process.name  result = process.terminate () 

i can't understand

(commandline="notepad.exe") 

how mechanism working? , can find definition of commandline in advance help

it sent part of **kwargs of def new (self, **kwargs): can see in wmi.py. convention microsoft has defined process creation , can find in msdn documentation.


Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -