Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Can't understand python C apis

Thread Tools

Re: Can't understand python C apis

Dieter Maurer
Posts: n/a
gmspro <(E-Mail Removed)> writes:
> I'm trying to understand the source code of python and how it works internally.
> But i can't understand the python C apis.

Usually, you try to understand the Python C api in order to write
extensions for Python in C (e.g. to interface with an existing C library
or to optimize a tight loop).

If this is the case for you, then there is an alternative: "Cython".
"Cython" actually is a compiler which compiles an extended Python
source language (Python + type/variable declarations + extension types)
into "C". With its help, you can create C extensions for Python
without a need to know all the details of the Python C API.

It might still be necessary at some point to understand more
of the API but highly likely it will take considerable time
to reach that point -- and then you might already be more familiar
and the understanding might be easier.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Can't understand python C apis Stefan Behnel Python 0 06-23-2012 07:45 AM
Restrictive APIs for Python Will Ware Python 4 12-15-2006 06:42 PM
Access C++, Java APIs from Python.. Manoj Kumar P Python 2 05-24-2006 01:58 PM
Read all of this to understand how it works. then check around on otherRead all of this to understand how it works. then check around on other thelisa martin Computer Support 2 08-18-2005 06:40 AM
Win32 APIs in ASP.NET application =?Utf-8?B?TGVubnk=?= ASP .Net 1 01-16-2004 09:48 PM