Re: Parsing a Python dictionary inside a Python extension

2005-05-28 Thread tiissa
[EMAIL PROTECTED] wrote: > I tried something like this and it has not worked. Oh! What did you ask of it, what did you expect and what did you get? > if ( (item = PyDict_GetItemString( vdict , "atab1")) != NULL ) > PyArg_ParseTuple( item , "i" , &atab1 ); This code expects a dictionary

Re: Parsing a Python dictionary inside a Python extension

2005-05-27 Thread elbertlev
1. Why not to simplfy the problem. You can extract values from the dictionari in python (this is fast). Put them in a list (fast). Pass the list to the extension, handle it and return to python. etc. 2. Use Pyrex. -- http://mail.python.org/mailman/listinfo/python-list