[Python-Dev] #include "Python.h"

Oleg Broytman phd at phdru.name
Sun Jan 29 18:22:23 CET 2012


Hello.

   We are sorry but we cannot help you. This mailing list is to work on
developing Python (adding new features to Python itself and fixing bugs);
if you're having problems learning, understanding or using Python, please
find another forum. Probably python-list/comp.lang.python mailing list/news
group is the best place; there are Python developers who participate in it;
you may get a faster, and probably more complete, answer there. See
http://www.python.org/community/ for other lists/news groups/fora. Thank
you for understanding.

On Sun, Jan 29, 2012 at 03:34:38PM +0000, Andrea Crotti wrote:
> I have a newbie question about CPython.
> Looking at the C code I noted that for example in tupleobject.c there is
> only one include
> #include "Python.h"
> 
> Python.h actually includes everything as far as I can I see so:
> - it's very hard with a not-enough smart editor to find out where the
>   not-locally defined symbols are actually defined (well sure that is
>   not a problem for most of the people)
> 
> - if all the files include python.h, doesn't it generate very big object
>   files? Or is it not a problem since they are stripped out after?
> 
> Thanks,
> Andrea

Oleg.
-- 
     Oleg Broytman            http://phdru.name/            phd at phdru.name
           Programmers don't die, they just GOSUB without RETURN.


More information about the Python-Dev mailing list