Syntax for extracting multiple items from a dictionary

2004-11-30 Thread shark
row = {"fname" : "Frank", "lname" : "Jones", "city" : "Hoboken", "state" : "Alaska"} cols = ("city", "state") Is there a best-practices way to ask for an object containing only the keys named in co

how to call this dll in python

2008-11-02 Thread Shark
I have a windows dll1.dll with a export function: int f1(char filename,char **buf,int *bufLen) { int len; //got the length of file anyway,such as 100 len = 100;//len = getLen(filename); *buf = (char*)calloc(100); *bufLen = len; return 0; } then how can I call the f1 function with python. thanks f

Re: how to call this dll in python

2008-11-03 Thread Shark
On Nov 3, 4:22 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > Shark schrieb: > > > I have a windows dll1.dll with a export function: > > > int f1(char filename,char **buf,int *bufLen) > > { > > int len; > > //got the length of file a

Re: how to call this dll in python

2008-11-04 Thread Shark
On Nov 4, 2:16 pm, "Mark Tolonen" <[EMAIL PROTECTED]> wrote: > "Shark" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > >I have a windows dll1.dll with a export function: > > > int f1(char filename,char **buf,int *buf