📄 136.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Robots" content="INDEX,NOFOLLOW">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<TITLE>Safari | Python Essential Reference, Second Edition -> Extension Building Tools</TITLE>
<LINK REL="stylesheet" HREF="oreillyi/oreillyM.css">
</HEAD>
<BODY bgcolor="white" text="black" link="#990000" vlink="#990000" alink="#990000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" cellpadding=5 cellspacing=0 border=0 class="navtopbg"><tr><td><font size="1"><p class="navtitle"><a href="2.html" class="navtitle">Linux/Unix</a> > <a href="0735710910.html" class="navtitle">Python Essential Reference, Second Edition</a> > <a href="121.html" class="navtitle">B. Extending and Embedding Python</a> > <span class="nonavtitle">Extension Building Tools</span></p></font></td><td align="right" valign="top" nowrap><font size="1"><a href="main.asp?list" class="safnavoff">See All Titles</a></font></td></tr></table>
<TABLE width=100% bgcolor=white border=0 cellspacing=0 cellpadding=5><TR><TD>
<TABLE border=0 width="100%" cellspacing=0 cellpadding=0><TR><td align=left width="15%" class="headingsubbarbg"><a href="135.html" title="Embedding"><font size="1">< BACK</font></a></td><td align=center width="70%" class="headingsubbarbg"><font size="1"><a href="popanote.asp?pubui=oreilly&bookname=0735710910&snode=136" target="_blank" title="Make a public or private annnotation">Make Note</a> | <a href="136.html" title="Use a Safari bookmark to remember this section">Bookmark</a></font></td><td align=right width="15%" class="headingsubbarbg"><a href="138.html" title="C. Summary of Changes"><font size="1">CONTINUE ></font></a></td></TR></TABLE>
<a href="5%2F28%2F2002+9%3A11%3A05+PM.html" TABINDEX="-1"><img src=images/spacer.gif border=0 width=1 height=1></a><font color=white size=1>155117184014003188065099048180054212144238241179195140058238111161104059122181083095130218</font><a href="read8.asp?bookname=0735710910&snode=136&now=5%2F28%2F2002+9%3A11%3A05+PM" TABINDEX="-1"><img src=images/spacer.gif border=0 width=1 height=1></a><br>
<FONT>
<h3>Extension Building Tools</h3>
<p>A number of tools are available to simplify the construction of Python extensions.</p>
<H4>Extension Classes</H4>
<P>Extension classes, written by Jim Fulton and available at <A targET="_blank" HRef="http://www.digicool.com/releases/ExtensionClass/">http://www.digicool.com/releases/ExtensionClass/</a>, provide a mechanism for defining extension types that are more class-like. In particular, they can be subclassed in C or Python, and provide better interaction with documentation strings and other aspects of the interpreter.</p>
<H4><TT Class="monofont">CXX</tt></h4>
<p>The <tt class="monofont">CXX</tt> extension, developed by Paul Dubois, simplifies the process of creating extension modules in C++ (<a taRgeT="_blank" hreF="http://cxx.sourceforge.net">http://cxx.sourceforge.net</a>).</p>
<h4><tT claSS="monofont">pyfort</TT></h4>
<p><tt CLASs="monofont">pyfort</tt>, also developed by Paul Dubois, can be used to build Python extension modules from Fortran code. Details are available at <a TARGet="_blank" hrEF="http://pyfortran.sourceforge.net">http://pyfortran.sourceforge.net</A>.</P>
<h4><tt class="monofont">f2py</tt></h4>
<p><tt class="monofont">f2py</tT> is a Fortran-to-Python interface generator developed by Pearu Peterson. Details are available at <a tArgeT="_blank" href="http://cens.ioc.ee/projects/f2py2e/">http://cens.ioc.ee/projects/f2py2e/</A>.</p>
<h4>Boost Python Library</h4>
<P>The Boost Python Library provides a tool for wrapping C++ libraries into Python extensions. The library provides a number of advanced features, including support for overloaded functions and operators. Details are available at <A TArget="_blank" HREF="http://www.boost.org/libs/python/doc/index.html">http://www.boost.org/libs/python/doc/index.html</a>.</p>
<h4><tT CLAss="monofont">SWIG</tt></H4>
<P><TT class="monofont">SWIG</tt> (Simplified Wrapper and Interface Generator), developed by the author and available at <a target="_blank" href="http://www.swig.org">http://www.swig.org</a>, can be used to create Python extensions automatically from annotated C header files.</p>
</FonT>
<P><TABLE width="100%" border=0><TR valign="top"><TD><font size=1 color="#C0C0C0"><br></font></TD><TD align=right><font size=1 color="#C0C0C0">Last updated on 3/28/2002<br>Python Essential Reference, Second Edition, © 2002 New Riders Publishing</font></TD></TR></TABLE></P>
<TABLE border=0 width="100%" cellspacing=0 cellpadding=0><TR><td align=left width="15%" class="headingsubbarbg"><a href="135.html" title="Embedding"><font size="1">< BACK</font></a></td><td align=center width="70%" class="headingsubbarbg"><font size="1"><a href="popanote.asp?pubui=oreilly&bookname=0735710910&snode=136" target="_blank" title="Make a public or private annnotation">Make Note</a> | <a href="136.html" title="Use a Safari bookmark to remember this section">Bookmark</a></font></td><td align=right width="15%" class="headingsubbarbg"><a href="138.html" title="C. Summary of Changes"><font size="1">CONTINUE ></font></a></td></TR></TABLE>
</TD></TR></TABLE>
<!--EndOfBrowse-->
</TD></TR></TABLE>
<table width=100% border=0 cellspacing=0 cellpadding=0 bgcolor=#990000><tr><td><p align=center><font size=1 face="verdana,arial,helvetica" color=white>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -