gamma approximation : what is module cmath and where is it located ?

Peter Otten __peter__ at web.de
Thu Jul 30 02:41:00 EDT 2009


pdlemper at earthlink.net wrote:

> I've used python a few months and expected to find cmath seperately
> sort of as a " header file".  A text search failed.  I now understand
> its in the Python Standard Library, which I assume is that big file
> Python30\LIBS\libpython30.a        

Python 3.1 is no longer maintained. I recommend that you upgrade to Python 3.1.

> And this is not readable as text.

The module is written in C. The source code for the 3.1 version is here:

http://svn.python.org/view/python/branches/release31-maint/Modules/cmathmodule.c?view=markup

If you want the source for all parts of python written in C you can download the sourcecode at

http://www.python.org/download/releases/3.1/

Peter





More information about the Python-list mailing list