Re: Python in C

2008-12-30 Thread Stefan Behnel
akineko wrote: > The more you work on Python, the harder you can go back to C or C++ > world. > > I use SWIG, instead. I think SWIG is a good way to mix two worlds. If you find it hard to go from Python back to C, you should have a look at Cython. http://cython.org/ Stefan -- http://mail.python

Re: Python in C

2008-12-30 Thread akineko
Hello Skip, Thank you for your response. Your posting reminds me that we, Python community as a whole, owe a great deal to Python developers. The problem is ... The more you work on Python, the harder you can go back to C or C++ world. I use SWIG, instead. I think SWIG is a good way to mix two w

Re: Python in C

2008-12-30 Thread skip
aki> Although this is not what you are asking but I'm wondering why you aki> need to read CPython implementation. A couple reasons come to mind: * education * want to make it better (extend it, fix bugs, etc) * want to see how it relates to the implementation of other langua

Re: Python in C

2008-12-29 Thread akineko
Although this is not what you are asking but I'm wondering why you need to read CPython implementation. I have been using Python for 7 or 8 years but I've never encountered any situations where I need to read CPython implementation. I needed to read library implementations and installer codes, thou

Re: Python in C

2008-12-29 Thread Gabriel Genellina
En Tue, 30 Dec 2008 00:32:45 -0200, escribió: BTW, as a person who hasn't really written a stitch of C++ in about 10 years I personally find the CPython implementation to be one of the most well-organized large pieces of code I have ever encountered. It's much easier to read (to me) than any

Re: Python in C

2008-12-29 Thread David Cournapeau
On Tue, Dec 30, 2008 at 10:22 AM, wrote: > I've just downloaded Python's mainstream implementation (CPython), > which is written in C. Not to my surprise, I feel like I'm looking at > unstructured spaghetti, and I'm having trouble figuring out how it all > works together. (Please bear with me; I'

Re: Python in C

2008-12-29 Thread skip
thmpsn> 1. Can anyone explain to me what kind of program structuring thmpsn>technique (which paradigm, etc) CPython uses? How do modules thmpsn>interact together? What conventions does it use? it's quite object-oriented once you understand how things are done. Take a look, f

Re: Python in C

2008-12-29 Thread Paul Rubin
[email protected] writes: > 1. Can anyone explain to me what kind of program structuring technique > (which paradigm, etc) CPython uses? How do modules interact together? > What conventions does it use? There are a bunch of docs about this, you could read them. The program is written about the

Re: Python in C

2008-12-29 Thread James Mills
On Tue, Dec 30, 2008 at 11:32 AM, Chris Rebert wrote: > On Mon, Dec 29, 2008 at 5:22 PM, wrote: > >> 2. Have there been any suggestions in the past to rewrite Python's >> mainstream implementation in C++ (or why wasn't it done this way from >> the beginning)? > > I'm not a CPython dev (I bet on

Re: Python in C

2008-12-29 Thread Chris Rebert
On Mon, Dec 29, 2008 at 5:22 PM, wrote: > 2. Have there been any suggestions in the past to rewrite Python's > mainstream implementation in C++ (or why wasn't it done this way from > the beginning)? I'm not a CPython dev (I bet one will pipe in), but I would speculate it's because C++ is so muc

Re: Python in C integration and WxPython

2005-09-15 Thread Alain Paschoud
Hi David, Thanks for your answer, but I don't think the problem comes from which Python version I use. I installed the Python from cygwin, but this didn't change everything. Finally, I fullfill the PYTHONPATH environment variable to make the system finding the wx module. It is now able to find it

Re: Python in C integration and WxPython

2005-09-15 Thread David Wilson
It sounds like your C program and Python script are running under different interpreters. Your C program almost certainly is using a Python version that comes with Cygwin, while the script is probably using a native win32 Python that has wxPython installed. Assuming this is true, then compiling yo