What's your first choice if you have to write a C module for python?

2008-08-26 Thread 一首诗
Hi all, I read this interesting post comparing Boost.Python with Pyd: http://pyd.dsource.org/vsboost.html What's your opinion about it? What's your first choice when you have write a C/C++ module for Python? -- http://mail.python.org/mailman/listinfo/python-list

Re: What's your first choice if you have to write a C module for python?

2008-08-26 Thread bearophileHUGS
[EMAIL PROTECTED]: I read this interesting post comparing Boost.Python with Pyd: http://pyd.dsource.org/vsboost.html What's your opinion about it? What's your first choice when you have write a C/C++ module for Python? That's not exactly a post. Pyd works well enough, it's easy to use and

Re: What's your first choice if you have to write a C module for python?

2008-08-26 Thread Ulrich Eckhardt
一首诗 wrote: I read this interesting post comparing Boost.Python with Pyd: http://pyd.dsource.org/vsboost.html What's your opinion about it? What's your first choice when you have write a C/C++ module for Python? There is no such thing as a C/C++ language. Seriously, both are really

Re: What's your first choice if you have to write a C module for python?

2008-08-26 Thread James Matthews
ctypes and swig for me On Tue, Aug 26, 2008 at 9:04 AM, Ulrich Eckhardt [EMAIL PROTECTED]wrote: 一首诗 wrote: I read this interesting post comparing Boost.Python with Pyd: http://pyd.dsource.org/vsboost.html What's your opinion about it? What's your first choice when you have write a

Re: What's your first choice if you have to write a C module for python?

2008-08-26 Thread Christian Heimes
一首诗 wrote: Hi all, I read this interesting post comparing Boost.Python with Pyd: http://pyd.dsource.org/vsboost.html What's your opinion about it? What's your first choice when you have write a C/C++ module for Python? I'm using handwritten C code or Cython/Pyrex to create Python C

Re: What's your first choice if you have to write a C module for python?

2008-08-26 Thread Carl Banks
On Aug 26, 8:19 am, 一首诗 [EMAIL PROTECTED] wrote: What's your first choice when you have write a C/C++ module for Python? 1. Plain C code 2. Implement my own C extension code generator in Python 3. ctypes ... ... Infinity. SWIG Carl Banks -- http://mail.python.org/mailman/listinfo/python-list