Embedding/API question

Andrew Wilkinson ajw126NO at SPAMyork.ac.uk
Wed Jul 31 12:18:18 EDT 2002


Can you post some code? That'd make it a lot easier to spot any mistakes.

Andrew Wilkinson

"Michelle L. Murillo" <msqrd at lanl.gov> wrote in message
news:215127f6.0207301417.65343257 at posting.google.com...
> Hi - I have successfully used PyArg_Parse and
> PyInt_AsLong to parse data from python into C. The
> data are being returned to C from a python script
> that does a look up into a dictionary. I can
> successfully return and print out an integer and
> a string. But what I can't figure out is how to
> get PyArg_Parse (or which ever API works) to
> correctly parse a python tuple - that is we
> have a value in the dictionary that is in the
> form of (8,8,8). If I make this a string all
> works fine - but with out the quotes all that
> is returned and printed out is garbage.
>
> Any ideas?
>
> TIA
> Michelle





More information about the Python-list mailing list