Sophie

Sophie

distrib > Mageia > 7 > armv7hl > by-pkgid > 6cc253ec22f906d096e81efae4e11a47 > files > 35

python3-cxx-devel-7.1.0-4.mga7.noarch.rpm

<html>
<head>
<title>PyCXX README</title>

<style>
h1, h2, h3, h4 {color: #000099;
	background-color: lightskyblue}
h3 {position: relative; left: 20px}

p {position: relative; left: 20px; margin-right: 20px; width: 40em;}
pre {color: #0000cc; background-color: #eeeeee; position: relative; left: 40px; margin-right: 80px;
	border-style: solid; border-color: black; border-width: thin}
kbd {color: #990000}
p cite, ol cite, ul cite {font-family: monospace; font-style: normal; font-size: normal}
li var, pre var, p var, kbd var {color: #009900; font-style: italic}
li samp, pre samp, p samp, kbd samp {color: #009900; font-weight: bold}
li p {position: relative; left: 0}
table { position: relative; left: 20px; border: solid #888888 1px; background-color: #eeeeee}
table th {border: solid #888888 1px; background-color: #88dd88; color: black}
table td {border: solid #888888 1px}
table td.code {border: solid #888888 1px;font-family: monospace; font-style: normal; font-size: normal}
p.param {background-color: #eeeeee; border-top: lightskyblue solid 4}
</style>
</head>

<body>

<h1>PyCXX -- README</h1>

<h2>Installation using distutils</h2>

<h3>Windows Installation and Demo</h3>
<ol>
    <li>Fetch <a href="http://prdownloads.sourceforge.net/cxx/pycxx-7.0.3.tar.gz">
    http://prdownloads.sourceforge.net/cxx/pycxx-7.0.3.tar.gz</a></li>
    <li>Expand the archive into a directory of your choosing C:\ for example.</li>

    <li>Install the PyCXX files:
        <ol>
        <li><pre>C:> cd \pycxx-7.0.3</pre></li>
        <li><pre>C:\pycxx-7.0.3> python setup.py install</pre></li>
        </ol>
    </li>
    <li>Build and run the demo extensions:
        <ol>
        <li><pre>C:> cd \pycxx-7.0.3</pre></li>
        <li><pre>C:\pycxx-7.0.3> python setup_makefile.py win32 win32.mak </pre></li>
        <li><pre>C:\pycxx-7.0.3> nmake -f win32.mak clean test</pre></li>
        </ol>
    </li>
</ol>


<h3>Unix Installation and Demo</h3>

<ol>
    <li>Fetch <a href="http://prdownloads.sourceforge.net/cxx/pycxx-7.0.3.tar.gz">
    http://prdownloads.sourceforge.net/cxx/pycxx-7.0.3.tar.gz</a>
    <li>Login as root. root access is typically needed on Unix systems to install the PyCXX files into the Python directories.
    <li>Expand the archive into a directory of your choosing ~\ for example.
    <li>Install the PyCXX files:
        <ol>
        <li><pre># cd ~/pycxx-7.0.3</pre>
        <li><pre># python setup.py install</pre>
        </ol>
    <li>Build and run the demo extensions:
        <ol>
        <li><pre># cd ~/pycxx-7.0.3</pre></li>
        <li><pre># python setup_makefile.py linux linux.mak</pre></li>
        <li><pre># make -f linux.mak clean test</pre></li>
        </ol>
    </li>
</ol>

<h2>Revision History</h2>

<h3>Version: 7.1.0 (24-August-2018)</h3>

<p>Add support for Py_LIMITED_API aka PEP-384</p>

<h3>Version: 7.0.3 (23-April-2017)</h3>

<p>Update Py::Long to support long long consitently between Python2 and Python3.<p>

<h3>Version: 7.0.2 (16-April-2017)</h3>

<p>Add Py::Char ord() method to return the long value of a character.<p>

<p>Fix String::size() that could return twice the actual length.
This affected as_ucs4string() which would return a string with
its second half as uninitialised memory.</p>

<p>Fix setup.py for the Demo code to build all the required C++
code.</p>

<h3>Version: 7.0.1 (29-Aug-2016)</h3>
<p>Add extra methods to Py::String that as needed on Windows to support full unicode range of code points.</p>

<p>On Windows Python defines Py_UNICODE as unsigned short, which is too small to hold all Unicode values.
PyCXX has added to the Py::String API to support creationg from Py_UCS4 strings and converting Py::String() into Py::ucs4string objects.</p>
<p>Fix validate for Bytes to use the correct check function.</p>

<h3>Version 7.0.0 (15-Aug-2016)</h3>
<p>Warning: This version fixes a number of problems that require source incompatible changes.</p>

<p>However by defining PYCXX_6_2_COMPATIBILITY the V6.2.x API is restored.
This is not recommended for new code.</p>

<p>The first version of python3 that is supported is 3.3.</p>

<p>A special thanks goes to Benjamin Webb, working at the US Army
Engineer Research and Development Center, who has contributed to
the design and testing of this release. 7.0.0 is better for his work.</p>

<p>New source file needs to built: Src/cxx_exceptions.cxx.
This file implements the new exception handling features.</p>

<p>Fix the type used for lengths and sequence indexes to use Py_ssize_t.
This will require sources changes for users of PyCXX.</p>

<p>Implement smart handling of Exceptions between C++ and Python. 
You can now catch exceptions in C++ by type that are raised in C++ or Python.</p>

<p>All builtin exceptions are support and are user defined exceptions.</p>

<p>The base exception type is now BaseException not Exception.
To upgrade source code replace all use of Exception with BaseException.</p>

<p>The documentation has been updated to describe the new exception features.</p>

<p>The supportSequence, supportMapping, supportNumber etc functions
now take a bit mask that defines which specific callbacks are handled.</p>

<h3>Version 6.2.8 (10-May-2016)</h3>
<p>Fix crash when a member function is called via callMemberFunction() and that function raises an expection.</p>
<p>Found in comment on StackOverFlow. Fix memory size allocated for new objects. It used the wrong size calculation, but was big enough to avoid problems.</p>

<h3>Version 6.2.7 (28-Apr-2016)</h3>
<p>Fix missing ptr__Unicode_Type.</p>
<p>Fixes from learn0more@gmail.com make python2 also remember the m_module and add accessor functions.</p>
<p>Fix for indirection issues from Vivian De Smedt.</p>
<p>Update to work with latest Microsoft Visual C++ for python 2.7. All test run in Win32 and Win64.</p>
<p>PyCXX.html documention has been updated, especially with 2TO3 information.</p>
<p>Use delete[] for objects allocated with new[].</p>

<h3>Version 6.2.6 (04-Jan-2015)</h3>
<p>Fix build issue with GCC 4.2.1 on FreeBSD and Mac OS X (stop python defining isspace as a macro).</p>
<p>Remove support for python 3.1 (API's are unstable).</p>
<p>Add Python 3.3 support.</p>
<p>Patch from Michael Droettboom to fix compilation issues.</p>
<p>Patch from Michael Droettboom to add buffer interface for python3.</p>

<h3>Version 6.2.4 (3-Mar-2012)</h3>
<p>Fix memory leak in string encode and decode functions</p>
<p>Fix indirect python loading on windows - Bool_type was missing</p>

<h3>Version 6.2.3 (11-Mar-2011)</h3>

<h3>Version 6.2.2 (26-Dec-2010)</h3>
<p>Fix problem compiling against Python 3.1.3</p>

<h3>Version 6.2.1 (3-May-2010)</h3>
<p>Fix problems with new style classes</p>
<p>Replace all example makefile and project files with setup_makefile.py script.</p>
<p>Add APIs to make calling python functions easier. See TupleN(), callOnSelf(), self()</p>

<h3>Version 6.1.1 (26-Sep-2009)</h3>
<p>Supports Python 3 starting at Python 3.1 and Python 2</p>
<p>Code clean up to fix compiler warnings reported by gcc 4.2.1 on Mac OS X when building for Python 3.</p>

<h3>Version 6.1.0 (19-Jul-2009)</h3>
<p>Support Python 3 and Python 2</p>

</body>
</html>