CC'ing the list
Please use ReplyAll when responding.
>________________________________
> From: Gabriele Brambilla <gb.gabrielebrambi...@gmail.com>
>To: Alan Gauld <alan.ga...@btinternet.com>
>Sent: Tuesday, 11 March 2014, 12:54
>Subject: Re: [Tutor] c++ on python
>
>
>
>I think (because I've not received the code yet) I will receive the source
>code (.c or .cpp file)
>and I want to compile it in the way to use it and maybe make small changes. So
>I think I want
>to embed the code as a Python module (but it's not properly a library).
>
>What is your experience level with C/C++?
Are you familiar with building C/C++ libraries or even object files?
There are documents and tools to help you turn C code into Python libraries
but that's really outside the scope of the tutor list.
About the dependencies I am not so sure as before.
>So I mistaken the list? which one is the right one?
>I suspect you may want a different list. But you will need to be clear about
>what you are
trying to do. It's still not clear what exactly this source code will be.
Is it a library or a program?
Do you think is it better that I install a C compiler and I don't use python? I
use Anaconda...
>You will need a C compiler regardless, if you receive C source code.
Python cannot work with C in source format, only after it is compiled.
But that does not mean you can't use Python to work with it, and that is
probably easier than trying to write your whole application in
C++ - especially if you are not already fluent in C++.
I've no experience of Anaconda but it looks like it might be hard to find an
equivalent
in the C++ world, especially if you have already written a lot of
Python/Anaconda code.
Alan Gauld
Author of the Learn To Program website
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor