By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,172 Members | 727 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,172 IT Pros & Developers. It's quick & easy.

How to pass a Python List to C

P: 1

I am very new to Python and thus the question. I have a Python List ready now which I need to send to a C program for further processing.

Is this possible? I came across SWIG which does a C to Python but could not find anything that did it the other way round.

Please advice me as to what I need to search for/ go through in this regard.

-Thank you,
Jul 28 '09 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 126
I guess the "normal" way is to embedd a python interpreter in your C program (else, if this is a part of a batch-script thing, you could program a routine that would read the content of the list into the c-program)

Jul 28 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.