473,324 Members | 2,214 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

good example of C extension for Mac OS X

Hi All,

Does anyone now of a good example to use as template for a C program
extension that needs to be built on the Mac OS X.

Thanks,

Oct 27 '07 #1
4 1412
There is a C template in file Modules/xxmodule.c in Python 2.5, maybe
earlier.

/Jean Brouwers
On Oct 27, 8:11 am, chewie54 <dfabrizi...@gmail.comwrote:
Hi All,

Does anyone now of a good example to use as template for a C program
extension that needs to be built on the Mac OS X.

Thanks,

Oct 27 '07 #2
There is a C template in file Modules/xxmodule.c in Python 2.5, maybe
earlier.

/Jean Brouwers

On Oct 27, 8:11 am, chewie54 <dfabrizi...@gmail.comwrote:
Hi All,

Does anyone now of a good example to use as template for a C program
extension that needs to be built on the Mac OS X.

Thanks,

Oct 27 '07 #3
On Oct 27, 2:59 pm, MrJean1 <MrJe...@gmail.comwrote:
There is a C template in file Modules/xxmodule.c in Python 2.5, maybe
earlier.

/Jean Brouwers

On Oct 27, 8:11 am, chewie54 <dfabrizi...@gmail.comwrote:
Hi All,
Does anyone now of a good example to use as template for a C program
extension that needs to be built on the Mac OS X.
Thanks,
I have looked at the docs on the python.org but specifically looking
for
examples showing how to deal with linked lists and more about when to
use
references Py_INCREF and Py_DECREF

I didn't find Modules/xxmodule.c on my Mac OS X installation.
Thanks again

Oct 27 '07 #4
You will need to download the MacOS X version from

<http://www.python.org/download/releases/2.5.1/>.

It contains the source code.

/Jean Brouwers
On Oct 27, 12:31 pm, chewie54 <dfabrizi...@gmail.comwrote:
On Oct 27, 2:59 pm, MrJean1 <MrJe...@gmail.comwrote:
There is a C template in file Modules/xxmodule.c in Python 2.5, maybe
earlier.
/Jean Brouwers
On Oct 27, 8:11 am, chewie54 <dfabrizi...@gmail.comwrote:
Hi All,
Does anyone now of a good example to use as template for a C program
extension that needs to be built on the Mac OS X.
Thanks,

I have looked at the docs on the python.org but specifically looking
for
examples showing how to deal with linked lists and more about when to
use
references Py_INCREF and Py_DECREF

I didn't find Modules/xxmodule.c on my Mac OS X installation.

Thanks again

Oct 28 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Coder Droid | last post by:
I decided to run some code with errors set to E_ALL, just to see what I would run across. It caught a few things, but 90% or better of the messages were of the 'undefined' kind: PHP Notice: ...
28
by: David MacQuigg | last post by:
I'm concerned that with all the focus on obj$func binding, &closures, and other not-so-pretty details of Prothon, that we are missing what is really good - the simplification of classes. There are...
3
by: Andy Dingley | last post by:
We've all seen this structure many times: <ul> <li><a href="..." >Click here</a></li> <li><a href="..." >Click here</a></li> </ul> Now it's obvious good practice to have sensible link texts,...
113
by: Bonj | last post by:
I was in need of an encryption algorithm to the following requirements: 1) Must be capable of encrypting strings to a byte array, and decyrpting back again to the same string 2) Must have the same...
3
by: BG Mahesh | last post by:
hi We are looking for a good Ajax library which has very good support for iframe. The ones we have considered so far are, Backbase.com - not happy with the speed Zapatech.com - it is good but...
206
by: WaterWalk | last post by:
I've just read an article "Building Robust System" by Gerald Jay Sussman. The article is here: http://swiss.csail.mit.edu/classes/symbolic/spring07/readings/robust-systems.pdf In it there is a...
3
by: raylopez99 | last post by:
The headline says it all. Great minds think alike: read the blog below from three years ago, as endorsed by Ritchie, who coinvented C. BTW the below lambda expression code will not work (.Where...
9
by: raylopez99 | last post by:
Took a quick look at WPF, wrote a hello world program, noted it's lack of a decent API (for example, no lightning bolt to add Event Handlers, and every control in WPF does not have as many event...
159
by: bernard | last post by:
howdy! please recommend a good c compiler. - should be small - should be fast - should come with a good ide - should be inexpensive i am using windows os.
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.