Re: seeking an example on C extension works in python 3.1.x or above

2011-07-27 Thread Stefan Behnel
Terry Reedy, 27.07.2011 04:58: On 7/26/2011 8:06 PM, llwaeva...@gmail.com wrote: I have been searching the example on C extension that works in python 3.1.x All the stdlib modules written in C. These are extension modules that come with Python. There are perhaps a hundred more on PyPI. Or hu

Re: seeking an example on C extension works in python 3.1.x or above

2011-07-26 Thread Terry Reedy
On 7/26/2011 8:06 PM, llwa...@gmail.com wrote: Hello, I have been searching the example on C extension that works in python 3.1.x All the stdlib modules written in C. These are extension modules that come with Python. There are perhaps a hundred more on PyPI. Can any one who ever succeed

Re: seeking an example on C extension works in python 3.1.x or above

2011-07-26 Thread Dan Stromberg
BTW, I believe you need to compile your extension module(s) with the same compiler that was used to build the Python interpreter - otherwise there could be calling convention issues. On Tue, Jul 26, 2011 at 5:58 PM, Dan Stromberg wrote: > > You could try looking in the Python sources for example

Re: seeking an example on C extension works in python 3.1.x or above

2011-07-26 Thread Dan Stromberg
You could try looking in the Python sources for examples. But using Cython is probably easier. On Tue, Jul 26, 2011 at 5:06 PM, wrote: > Hello, > I have been searching the example on C extension that works in python > 3.1.x ror above for long time. I tried the simple example given in > python

seeking an example on C extension works in python 3.1.x or above

2011-07-26 Thread llwaeva
Hello, I have been searching the example on C extension that works in python 3.1.x ror above for long time. I tried the simple example given in python document or enclosed in python's src (PC folder), doesn't work, undefined reference to `_imp___Py_NoneStruct' and undefined reference to `_imp