4
\brief C++ facilities to make it easier to write Python extensions
6
CXX/Objects is a set of C++ facilities to make it easier to write
7
Python extensions. The chief way in which PyCXX makes it easier to
8
write Python extensions is that it greatly increases the probability
9
that your program will not make a reference-counting error and will
10
not have to continually check error returns from the Python C API.
11
CXX/Objects integrates Python with C++ in these ways:
13
C++ exception handling is relied on to detect errors and clean up.
14
In a complicated function this is often a tremendous problem when
15
writing in C. With PyCXX, we let the compiler keep track of what
16
objects need to be dereferenced when an error occurs.
17
The Standard Template Library (STL) and its many algorithms plug and
18
play with Python containers such as lists and tuples.
19
The optional CXX/Extensions facility allows you to replace the
20
clumsy C tables with objects and method calls that define your
21
modules and extension objects.
23
PyCXX documentation is split into <a
24
HREF="http://cxx.sourceforge.net/PyCXX-Python3.html">Python 3</A> and
25
<A HREF="http://cxx.sourceforge.net/PyCXX-Python2.html">Python 2</A>
26
versions. The Python 3 documentation is the most accurate.
28
Latest <A HREF="http://cxx.sourceforge.net/README.html">PyCXX
31
The source code is released under the <A
32
HREF="https://sourceforge.net/p/cxx/code/HEAD/tree/trunk/CXX/COPYRIGHT">BSD